[Nix-dev] Re: some ideas to (re)organize/improve nixos
Nicolas Pierron
nicolas.b.pierron at gmail.com
Wed May 21 16:19:42 CEST 2008
On Wed, May 21, 2008 at 2:04 PM, Ludovic Courtès <ludo at gnu.org> wrote:
> Agreed. But again, ATM, (almost) all NixOS users are committers. ;-)
Or they does not have any problems with NixOs which means that you
will not hear about them.
There is 2 reason for that:
- It seems easy to create a package: copy & past and use sed and sh,
even if it is the bad way.
- There is never enough packages. (1)
> And there's `nixos-checkout'.
It could also check-out a central repository which use another
versionning system.
As this topic is talking about "some ideas to (re)organize/improve
nixos", I suggest to get rid of all-packages.nix because it breaks the
modularity of adding packages. It is the most modified file which is
is involved everywhere, so merging problems and scalability ... My
solution is to use the same system as done for each user with the
directory ( .nix-defexpr ) which is followed recursively until it find
a default.nix files. So each directory that contains a package should
have a default.nix which could looks like that:
pkgs:
{
foo = import ./foo.nix {
inherit (pkgs) ... ;
};
} // pkgs
--
Nicolas Pierron
More information about the nix-dev
mailing list