Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: e0fab80c27377edab687b72e4383dc0022c9cde0
      
https://github.com/NixOS/nixpkgs/commit/e0fab80c27377edab687b72e4383dc0022c9cde0
  Author: Marc Weber <[email protected]>
  Date:   2013-05-08 (Wed, 08 May 2013)

  Changed paths:
    M pkgs/lib/misc.nix

  Log Message:
  -----------
  experimental/multiple-versions-in-one-file

This patch introduces mergeAttrsByVersion to lib.

In some cases it does make sense to keep "experimental" and "older" versions of
the same package in one file because it follows the "do it once only" principle.
Very often many versions share their build instructions - so even though I
understand Eelcos opinion that different versions should be put into their own
.nix files - its my feeling telling me that this is fastest for most cases.

I agree with Eelco that if tweaks for individual versions become too much they
should be split into individual files.

See comments above mergeAttrsByVersion learn about its usage.

Signed-off-by: Marc Weber <[email protected]>


  Commit: b50b9bf2b710205a98de6e3ab88c3c1b7220e52f
      
https://github.com/NixOS/nixpkgs/commit/b50b9bf2b710205a98de6e3ab88c3c1b7220e52f
  Author: Marc Weber <[email protected]>
  Date:   2013-05-08 (Wed, 08 May 2013)

  Changed paths:
    M pkgs/lib/misc.nix
    M pkgs/misc/misc.nix
    M pkgs/top-level/all-packages.nix

  Log Message:
  -----------
  add versionedDerivation


Compare: https://github.com/NixOS/nixpkgs/compare/5815d184609b...b50b9bf2b710
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to