about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-06-23 07:41:17 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-06-23 07:41:17 +0000
commit558251da4af238beaccc6fba53797d95531a3bdf (patch)
treec3ece4f984d2ded1da39b503a7945e7f727d6807 /pkgs/build-support
parent44216c2ef81fb7eeb1d0c25d2dcf8652714c9798 (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.nix32
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
+