diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2007-12-04 22:06:13 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2007-12-04 22:06:13 +0000 |
commit | 41ecc6941b49d2211d4215e4e6c9a496a179ada8 (patch) | |
tree | d53430d78f39218a1a65c03942b266884d20a3d6 /pkgs/top-level/builder-defs.nix | |
parent | 800634501b9f5f5666ca20148b544ec27a3965e5 (diff) | |
download | nixlib-41ecc6941b49d2211d4215e4e6c9a496a179ada8.tar nixlib-41ecc6941b49d2211d4215e4e6c9a496a179ada8.tar.gz nixlib-41ecc6941b49d2211d4215e4e6c9a496a179ada8.tar.bz2 nixlib-41ecc6941b49d2211d4215e4e6c9a496a179ada8.tar.lz nixlib-41ecc6941b49d2211d4215e4e6c9a496a179ada8.tar.xz nixlib-41ecc6941b49d2211d4215e4e6c9a496a179ada8.tar.zst nixlib-41ecc6941b49d2211d4215e4e6c9a496a179ada8.zip |
svn path=/nixpkgs/trunk/; revision=9861
Diffstat (limited to 'pkgs/top-level/builder-defs.nix')
-rw-r--r-- | pkgs/top-level/builder-defs.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/top-level/builder-defs.nix b/pkgs/top-level/builder-defs.nix index 94f83b9c06fd..4e6a84a25ebf 100644 --- a/pkgs/top-level/builder-defs.nix +++ b/pkgs/top-level/builder-defs.nix @@ -12,6 +12,7 @@ args: with args; with stringsWithDeps; with lib; else if (hasSuffixHack ".tar.gz" s) || (hasSuffixHack ".tgz" s) then "tgz" else if (hasSuffixHack ".tar.bz2" s) || (hasSuffixHack ".tbz2" s) then "tbz2" else if (hasSuffixHack ".zip" s) || (hasSuffixHack ".ZIP" s) then "zip" + else if (hasSuffixHack "-cvs-export" s) then "cvs-dir" else (abort "unknown archive type : ${s}")); defAddToSearchPath = FullDepEntry (" @@ -175,6 +176,9 @@ args: with args; with stringsWithDeps; with lib; unzip '${s}' cd \"$( unzip -lqq '${s}' | tail -1 | sed -e 's@^\\(\\s\\+[-0-9:]\\+\\)\\{3,3\\}\\s\\+\\([^/]\\+\\)/.*@\\2@' )\" + " else if (archiveType s) == "cvs-dir" then " + cp -r '${s}' . + cd \$(basename ${s}) " else (abort "unknown archive type : ${s}"))+ (if args ? goSrcDir then args.goSrcDir else "") ) [minInit]; |