add versionedDerivation

This commit is contained in:
Marc Weber
2013-05-08 15:43:07 +03:00
committed by Evgeny Egorochkin
parent e0fab80c27
commit b50b9bf2b7
3 changed files with 13 additions and 3 deletions
+4
View File
@@ -6,6 +6,10 @@ in
{
# description see mergeAttrsByVersion in lib/misc.nix
versionedDerivation = name: version: attrsByVersion: base:
pkgs.stdenv.mkDerivation (stdenv.lib.mergeAttrsByVersion name version attrsByVersion base);
/*
Usage example creating a derivation installing ruby, sup and a lib: