mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
|
|
|
let version = "3.0.10"; in
|
|
stdenv.mkDerivation {
|
|
name = "xdelta-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "0wwxdr01var3f90iwi1lgjpsa4y549g850hyyix5cm0qk67ck4rg";
|
|
rev = "v${version}";
|
|
repo = "xdelta-devel";
|
|
owner = "jmacd";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
postPatch = ''
|
|
cd xdelta3
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
checkPhase = ''
|
|
mkdir $PWD/tmp
|
|
for i in testing/file.h xdelta3-test.h; do
|
|
substituteInPlace $i --replace /tmp $PWD/tmp
|
|
done
|
|
./xdelta3regtest
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -D -m755 xdelta3 $out/bin/xdelta3
|
|
install -D -m644 xdelta3.1 $out/share/man/man1/xdelta3.1
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit version;
|
|
description = "Binary differential compression in VCDIFF (RFC 3284) format";
|
|
homepage = http://xdelta.org/;
|
|
license = licenses.gpl2Plus;
|
|
platforms = with platforms; linux;
|
|
maintainers = with maintainers; [ nckx ];
|
|
};
|
|
}
|