lzip: add unpackCmd hook

This commit is contained in:
Orivej Desh 2017-12-04 19:08:11 +00:00
parent a865d17b7c
commit 0bb47027ab
3 changed files with 8 additions and 2 deletions

View File

@ -11,8 +11,6 @@ stdenv.mkDerivation rec {
sha256 = "1nqhk3n1s1p77g2bjnj55acicsrlyb2yasqxqwpx0w0djfx64ygm";
};
unpackCmd = "tar --lzip -xf";
nativeBuildInputs = [ lzip ];
/* FIXME: Tests currently fail on Darwin:

View File

@ -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;

View File

@ -0,0 +1,5 @@
lzipUnpackCmdHook() {
[[ "$1" = *.tar.lz ]] && tar --lzip -xf "$1"
}
unpackCmdHooks+=(lzipUnpackCmdHook)