[Nix-dev] Howto add custom packages ? make inherit lazy?

Marc Weber marco-oweber at gmx.de
Thu Apr 26 20:07:42 CEST 2007


> This does'nt work with
> nix-env -aq '*'
> to list all packages (the mypackage and all from pkgs)
> 
> I'm looking for something like 
> ==
> with (import /pr/nix/nixsvn/trace/nixpkgs/trunk/pkgs/top-level/all-packages.nix {});
> rec {
>   mypackage = stdenv.mkDerivation {
>     name = "mypackage";
>   };
>   inherit transfig, ...;
>   # I'd like to do a inherit *;
> }
> 
> ... are all remeaning packages not listed yet but defined in
> all-packages.nix

armijn told me on #trace that I don't want to inherit * because inherit
isn't lazy ..
What about making it lazy?

It would be nice to be able to install all packages in a uniq way (thus
nix-env --install 'pkg name')

or is there another way ?

Marc



More information about the nix-dev mailing list