diff options
Diffstat (limited to 'pkgs/build-support/builder-defs/builder-defs.nix')
-rw-r--r-- | pkgs/build-support/builder-defs/builder-defs.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/builder-defs/builder-defs.nix b/pkgs/build-support/builder-defs/builder-defs.nix index 58c439e4316e..ba13a0911f7a 100644 --- a/pkgs/build-support/builder-defs/builder-defs.nix +++ b/pkgs/build-support/builder-defs/builder-defs.nix @@ -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}) |