package-managers

Generating a Nix package from a stack project

时光毁灭记忆、已成空白 提交于 2019-11-30 20:22:25
I have a software application that can be built and installed with stack . I would like to offer a binary package as well for Linux and Mac. For this purpose I'm considering nix , since, among other things, it can be used in Linux and Mac. This will save me the trouble of having to maintain two package types. After reading about how nix packages are defined, I would expect that a stack based project could be built with a configuration that would look like: { stdenv, fetchurl, stack }: # we need to depend on stack stdenv.mkDerivation { name = "some-haskell-package-0.1"; builder = ./builder.sh;

Buildroot package management

佐手、 提交于 2019-11-30 13:55:29
I'm using buildroot to create a rootfs running on my ARM platform. I'd like to have a package manager on my platform to easily install packages, like apt-get in ubuntu. I found opkg, who can be simply added to the buildroot build, but I can't find any information about how to find a repository. Also, reading some stuff on the web about this, I also read that buildroot didn't include a package manager. Isn't opkg a package manager? Or just some kind of frontend to fetch packages? I don't really understand what a package manager consist of, and I don't find any information about this. Could

Private composer packages - no valid composer.json was found

孤人 提交于 2019-11-30 11:45:12
I'm trying to load a library I have hosted on BitBucket using composer as explained both in the official documentation and here , but keep receiving the following error: [Composer\Repository\InvalidRepositoryException] No valid composer.json was found in any branch or tag of [repository URL], could not load a package from it. Here is my project composer.json: { "name": "Project name", "require": { "my-vendor/my-package": "dev-master" }, "repositories": [ { "type": "vcs", "url": [repository URL] } ] } And here is the composer.json in my remote repository (that apparently can't be found): {

What do you expect from a package manager for Emacs? [closed]

两盒软妹~` 提交于 2019-11-30 10:13:43
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Although several thousand Emacs Lisp libraries exist, GNU Emacs, until version 24.1 did not have an (internal) package manager. I guess that most users would agree that it is currently rather inconvenient to find, install and especially keep up-to-date Emacs Lisp libraries.

npm install cannot read package.json

耗尽温柔 提交于 2019-11-30 08:16:50
问题 I am trying to manage my node package dependencies. I'd like to be able to install all the required dependencies by running a command, and from what I have read, one way to achieve this is using a package.json file and running npm install . So my JSON file looks like this: { "name": "Name-Of-The-Thing", "description": "The Thing's Name", "author": "The Dude <the.dude@dudethinking.com>", "dependencies": { "mocha":">= 1.12.0", "mocha-phantomjs":">= 3.1.0", "chai":">= 1.7.2", "phantomjs":">= 1.9

Download python package with dependencies without installing

风流意气都作罢 提交于 2019-11-30 05:09:17
I need to download a python package with all its dependencies without installing, sneaker-net it to a computer without connection to the internet, and install it there. For example, I want to install buildbot, lettuce, etc. The computer is a Windows 7 machine, using Python 2.7. If the package has native extensions, I can build them on the computer. You can use pip , with the --download option, which will download the main package and its dependancies, without installing them. pip install --download="/path/to/downloaded/files" sneaker-net And use these files one the local machine with: pip

How to get Android device Features using package manager

北战南征 提交于 2019-11-30 04:15:30
I am developing an android application and I need android device features. I know that, by using package manager, getSystemAvailableFeatures method should be available. Still the method is not available Can any one help me by post some example or source code related to that. GrAnd I use the following function to determine if a feature is available: public final static boolean isFeatureAvailable(Context context, String feature) { final PackageManager packageManager = context.getPackageManager(); final FeatureInfo[] featuresList = packageManager.getSystemAvailableFeatures(); for (FeatureInfo f :

How to use libapt (or libept) in debian-like system to list packages and get their infos?

*爱你&永不变心* 提交于 2019-11-30 01:38:59
问题 Somebody used libapt or libept to list packages and get informations about package in a debian-like system? Libapt is not well-documented at all, and i've found few examples and tutorials about libept. Can someone explain me best methods to get a list of every packages in the apt-system get informations about single packages (like name, version, dependences, description, etc. get list of files installed by a single package Work directly with apt internal files is quite simple, but i want to

Installing Ruby 1.9.1 on Ubuntu?

瘦欲@ 提交于 2019-11-29 20:20:42
I wonder about installing the latest version of Ruby on Ubuntu 9.04. Now I can run through the ./configure and make stuff fine, but what I wonder about: how to avoid conflicts with the packaging system? For example if some other package I install depends on Ruby, wouldn't the package manager install the (outdated) Ruby package and in the worst case overwrite my files? So I think I need some way to tell Ubuntu that Ruby is in fact already installed? Sam Saffron Save yourself the headache and use RVM ( Ruby Version Manager ) Keep in mind, Rails 3 works best with Ruby 1.9.2. Ruby 1.9.2 fixes up

Generating a Nix package from a stack project

社会主义新天地 提交于 2019-11-29 18:54:22
问题 I have a software application that can be built and installed with stack . I would like to offer a binary package as well for Linux and Mac. For this purpose I'm considering nix , since, among other things, it can be used in Linux and Mac. This will save me the trouble of having to maintain two package types. After reading about how nix packages are defined, I would expect that a stack based project could be built with a configuration that would look like: { stdenv, fetchurl, stack }: # we