diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-05-21 13:27:41 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-05-21 13:27:41 +0000 |
commit | 7cc066df68d53f7683391beb8f19fca8f500dbc0 (patch) | |
tree | ca8ffa2195870585d0b3508e6b7fde42123390a6 /pkgs/top-level/builder-defs.nix | |
parent | ad848d5a015f2822f5a4f74c737f89825bea26c3 (diff) | |
download | nixlib-7cc066df68d53f7683391beb8f19fca8f500dbc0.tar nixlib-7cc066df68d53f7683391beb8f19fca8f500dbc0.tar.gz nixlib-7cc066df68d53f7683391beb8f19fca8f500dbc0.tar.bz2 nixlib-7cc066df68d53f7683391beb8f19fca8f500dbc0.tar.lz nixlib-7cc066df68d53f7683391beb8f19fca8f500dbc0.tar.xz nixlib-7cc066df68d53f7683391beb8f19fca8f500dbc0.tar.zst nixlib-7cc066df68d53f7683391beb8f19fca8f500dbc0.zip |
LZMA support in builderDefs; gpm added
svn path=/nixpkgs/trunk/; revision=11874
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 b6f1a07f8241..8f2a2b0d0b27 100644 --- a/pkgs/top-level/builder-defs.nix +++ b/pkgs/top-level/builder-defs.nix @@ -13,6 +13,7 @@ args: with args; with stringsWithDeps; with lib; (if hasSuffixHack ".tar" s then "tar" 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 ".tar.lzma" s) then "tar.lzma" else if (hasSuffixHack ".zip" s) || (hasSuffixHack ".ZIP" s) then "zip" else if (hasSuffixHack "-cvs-export" s) then "cvs-dir" else if (hasSuffixHack ".nar.bz2" s) then "narbz2" @@ -190,6 +191,9 @@ args: with args; with stringsWithDeps; with lib; " else if (archiveType s) == "tbz2" then " tar xvjf '${s}' cd \"\$(tar tjf '${s}' | head -1 | sed -e 's@/.*@@' )\" + " else if (archiveType s) == "tar.lzma" then " + unlzma -d -c <'${s}' | tar xv + cd \"\$(unlzma -d -c <'${s}' | tar t | head -1 | sed -e 's@/.*@@' )\" " else if (archiveType s) == "zip" then " unzip '${s}' cd \"$( unzip -lqq '${s}' | tail -1 | |