xdelta: add lzmaSupport; enable by default
This commit is contained in:
parent
83289318f0
commit
5e9b49dd53
@ -1,7 +1,15 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
{ stdenv, fetchFromGitHub, autoreconfHook
|
||||||
|
, lzmaSupport ? true, xz ? null
|
||||||
|
}:
|
||||||
|
|
||||||
let version = "3.0.11"; in
|
assert lzmaSupport -> xz != null;
|
||||||
stdenv.mkDerivation {
|
|
||||||
|
let
|
||||||
|
version = "3.0.11";
|
||||||
|
mkWith = flag: name: if flag
|
||||||
|
then "--with-${name}"
|
||||||
|
else "--without-${name}";
|
||||||
|
in stdenv.mkDerivation {
|
||||||
name = "xdelta-${version}";
|
name = "xdelta-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -12,11 +20,17 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
buildInputs = []
|
||||||
|
++ stdenv.lib.optionals lzmaSupport [ xz ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
cd xdelta3
|
cd xdelta3
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
(mkWith lzmaSupport "liblzma")
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user