[Nix-dev] Nix expressions for channel nixpkgs-unstable

Florian Friesdorf flo at chaoflow.net
Mon Mar 26 20:17:11 CEST 2012


<#secure method=pgpmime mode=sign>
On Mon, 26 Mar 2012 17:10:18 +0200, Konrad Hinsen <konrad.hinsen at fastmail.net> wrote:
>  > It's always possible to disambiguate by using the -A flag to select a package by
>  > attribute name, e.g.:
>  > 
>  >   $ nix-env -iA pythonPackages.numpy
> 
> $ nix-env --dry-run  -iA pythonPackages.numpy
> (dry run; not doing anything)
> error: attribute `pythonPackages' in selection path `pythonPackages' not found

It should be:

$ nix-env -iA nixpkgs_unstable.pythonPackages.numpy

>  > You can do a checkout of the Subversion repository of Nixpkgs.  However, the
>  > Nixpkgs channel is *also* a "source code version"; it's just a copy of some
>  > revision of the Nixpkgs repository, along with a pointer to pre-built binaries.
> 
> I think I found it:
> 
>   $HOME/.nix-defexpr/channels/nixpkgs_unstable/pkgs/
> 
> Still something seems to be missing. In
> $HOME/.nix-defexpr/channels/nixpkgs_unstable/pkgs//top-level/all-packages.nix
> I see definitions for various versions of gfortran, but I can't install them:
> 
>    $ nix-env --dry-run -i gfortran42
>    (dry run; not doing anything)
>    error: selector `gfortran42' matches no derivations

nix-env -qa \* |grep fortran

The package is named: gfortran-wrapper

That wrapper suffix is used also for other packages, while it could be
argued whether that's a good idea or not, nix-env -qa \* is your friend.

-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC


More information about the nix-dev mailing list