[Nix-dev] What do you think about an extra git attribute ?

Nicolas Pierron nicolas.b.pierron at gmail.com
Mon Aug 11 10:56:30 CEST 2008


On Sun, Aug 10, 2008 at 00:45, Marc Weber <marco-oweber at gmx.de> wrote:
> What do you think about
>
> all-packages.nix:
>
> git = import ../applications/version-management/git;
>
> where ../applications/version-management/git:
> {
>  git = <derivation>
>  gitGit = <derivation>
>  qgit = <derivation>
>  stgit = <derivation>
>  gitTestMergeScript = <derivation>
> }
>
> ?
>
> It would keep all-packages cleaner and if you look for git support
> within nix you find the packages faster?
>
> Drawback:
> You need to install using
> -A git.git
> -A git.gitGit
> etc ?

And why not doing the same as done by "nix-env -A
nixpkgs_sys.sys.attr" with all nixpkgs' packages?
If we do so we would be able to get rid of all-packages.nix and every
directory will contain all information related to the defined package.
(not divided between pkgs/path/to/dir and pkgs/top-level).

-- 
Nicolas Pierron
- If you are doing something twice then you should try to do it once.



More information about the nix-dev mailing list