lzip: add unpackCmd hook
This commit is contained in:
parent
a865d17b7c
commit
0bb47027ab
|
@ -11,8 +11,6 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1nqhk3n1s1p77g2bjnj55acicsrlyb2yasqxqwpx0w0djfx64ygm";
|
sha256 = "1nqhk3n1s1p77g2bjnj55acicsrlyb2yasqxqwpx0w0djfx64ygm";
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackCmd = "tar --lzip -xf";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ lzip ];
|
nativeBuildInputs = [ lzip ];
|
||||||
|
|
||||||
/* FIXME: Tests currently fail on Darwin:
|
/* FIXME: Tests currently fail on Darwin:
|
||||||
|
|
|
@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
|
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
|
||||||
|
|
||||||
|
setupHook = ./lzip-setup-hook.sh;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.nongnu.org/lzip/lzip.html;
|
homepage = http://www.nongnu.org/lzip/lzip.html;
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
lzipUnpackCmdHook() {
|
||||||
|
[[ "$1" = *.tar.lz ]] && tar --lzip -xf "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
unpackCmdHooks+=(lzipUnpackCmdHook)
|
Loading…
Reference in New Issue