[Nix-dev] Getting started with cloned nixpkgs: multiple errors and other questions
Luca Bruno
lethalman88 at gmail.com
Tue Mar 3 15:19:49 CET 2015
On 03/03/2015 15:09, Jesse Haber-Kucharsky wrote:
> Hi everyone.
>
> I've successfully installed NixOS and subscribed to the unstable
> channel and everything there seems to be working well.
>
> I started having problems when I wanted to start contributing packages
> and upgrades to nixpkgs.
>
> I cloned the master branch of github.com/nixos/nixpkgs
> <http://github.com/nixos/nixpkgs> and set my NIX_PATH to point
> exclusively to the local checkout with "export
> NIX_PATH=/home/jhaberku/src" (nixpkgs exist in the "nixpkgs" directory
> in that location).
>
> Now, aside from nix complaining about unfree packages and packages
> marked as bad (which I set in my ~/.nixpkgs/config.nix file as
> directed), I get this error all the time:
>
> $ NIX_PATH=/home/jhaberku/src nix-env -qa firefox
> error: attribute 'interpreterName' missing, at
> "/home/jhaberku/src/nixpkgs/pkgs/development/web/nodejs/build-node-package.nix":7:16
>
So first of all, nix-env won't be looking into your NIX_PATH but
~/.nix-defexpr: see
http://lethalman.blogspot.it/2014/09/nix-pill-15-nix-search-paths.html
Use nix-env -f /home/jhaberku/src/nixpkgs -qa firefox
About the error not sure, nobody complained about that. But in case it's
not your problem rather a bug in nixpkgs.
And yes, you can mix whatever software you want. But there's no
guarantee a single nixpkgs commit is consistent among all combinations
of software, even less between two commits. I think I have an old
chrome with nix-env while my system is up-to-date with latest unstable.
As long as things work for you, it's ok :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150303/d92917d5/attachment.html
More information about the nix-dev
mailing list