Author: simons
Date: Sun Dec 11 19:39:16 2011
New Revision: 30840
URL: https://nixos.org/websvn/nix/?rev=30840&sc=1

Log:
added git support to builder-defs

Modified:
   nixpkgs/trunk/pkgs/build-support/builder-defs/builder-defs.nix

Modified: nixpkgs/trunk/pkgs/build-support/builder-defs/builder-defs.nix
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/builder-defs/builder-defs.nix      Sun Dec 
11 19:39:12 2011        (r30839)
+++ nixpkgs/trunk/pkgs/build-support/builder-defs/builder-defs.nix      Sun Dec 
11 19:39:16 2011        (r30840)
@@ -25,6 +25,7 @@
                 else if (hasSuffixHack ".tar.xz" s) then "tar.xz"
                 else if (hasSuffixHack ".zip" s) || (hasSuffixHack ".ZIP" s) 
then "zip"
                 else if (hasSuffixHack "-cvs-export" s) then "cvs-dir"
+                else if (hasSuffixHack "-git-export" s) then "git-dir"
                 else if (hasSuffixHack ".nar.bz2" s) then "narbz2"
                 else if (hasSuffixHack ".rpm" s) then "rpm"
 
@@ -228,6 +229,10 @@
                 cp -r '${s}' .
                 cd \$(basename ${s})
                 chmod u+rwX -R .
+        " else if (archiveType s) == "git-dir" then "
+                cp -r '${s}' .
+                cd \$(basename ${s})
+                chmod u+rwX -R .
         " else if (archiveType s) == "dir" then "
                 cp -r '${s}' .
                 cd \$(basename ${s})
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to