mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
lzip: add unpackCmd hook
This commit is contained in:
parent
a865d17b7c
commit
0bb47027ab
@ -11,8 +11,6 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1nqhk3n1s1p77g2bjnj55acicsrlyb2yasqxqwpx0w0djfx64ygm";
|
||||
};
|
||||
|
||||
unpackCmd = "tar --lzip -xf";
|
||||
|
||||
nativeBuildInputs = [ lzip ];
|
||||
|
||||
/* FIXME: Tests currently fail on Darwin:
|
||||
|
@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
|
||||
|
||||
setupHook = ./lzip-setup-hook.sh;
|
||||
|
||||
doCheck = true;
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
homepage = http://www.nongnu.org/lzip/lzip.html;
|
||||
|
5
pkgs/tools/compression/lzip/lzip-setup-hook.sh
Normal file
5
pkgs/tools/compression/lzip/lzip-setup-hook.sh
Normal file
@ -0,0 +1,5 @@
|
||||
lzipUnpackCmdHook() {
|
||||
[[ "$1" = *.tar.lz ]] && tar --lzip -xf "$1"
|
||||
}
|
||||
|
||||
unpackCmdHooks+=(lzipUnpackCmdHook)
|
Loading…
Reference in New Issue
Block a user