added git support to builder-defs
svn path=/nixpkgs/trunk/; revision=30840
This commit is contained in:
parent
ba935dcbc0
commit
9dab7db8a2
|
@ -25,6 +25,7 @@ let inherit (builtins) head tail trace; in
|
|||
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 @@ let inherit (builtins) head tail trace; in
|
|||
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})
|
||||
|
|
Loading…
Reference in New Issue