diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-06-23 07:41:17 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-06-23 07:41:17 +0000 |
commit | 558251da4af238beaccc6fba53797d95531a3bdf (patch) | |
tree | c3ece4f984d2ded1da39b503a7945e7f727d6807 /pkgs/build-support | |
parent | 44216c2ef81fb7eeb1d0c25d2dcf8652714c9798 (diff) |
Adding golly (a cellular automata program)
svn path=/nixpkgs/trunk/; revision=22391
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/builder-defs/template-auto-callable.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/build-support/builder-defs/template-auto-callable.nix b/pkgs/build-support/builder-defs/template-auto-callable.nix new file mode 100644 index 0000000000000..4801e4253028c --- /dev/null +++ b/pkgs/build-support/builder-defs/template-auto-callable.nix @@ -0,0 +1,32 @@ +x@{builderDefsPackage + (abort "Specify dependencies") + , ...}: +builderDefsPackage +(a : +let + s = import ./src-for-default.nix; + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + [(abort "Specify helper argument names")]; + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); +in +rec { + src = a.fetchUrlFromSrcInfo s; + + inherit (s) name; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + meta = { + description = "${abort ''Specify description''}"; + maintainers = with a.lib.maintainers; + [ + (abort "Specify maintainers") + ]; + platforms = with a.lib.platforms; + (abort "Specify platforms"); + }; +}) x + |