nixpkgs/pkgs/tools/compression/xdelta/default.nix

45 lines
1 KiB
Nix
Raw Normal View History

2015-04-16 21:25:24 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook }:
2015-07-26 23:16:57 +00:00
let version = "3.0.10"; in
2015-08-02 20:03:26 +00:00
stdenv.mkDerivation {
2015-04-16 21:25:24 +00:00
name = "xdelta-${version}";
2015-04-16 21:25:24 +00:00
src = fetchFromGitHub {
2015-07-26 23:16:57 +00:00
sha256 = "0wwxdr01var3f90iwi1lgjpsa4y549g850hyyix5cm0qk67ck4rg";
2015-04-16 21:25:24 +00:00
rev = "v${version}";
repo = "xdelta-devel";
owner = "jmacd";
};
nativeBuildInputs = [ autoreconfHook ];
2015-04-16 21:25:24 +00:00
postPatch = ''
cd xdelta3
'';
enableParallelBuilding = true;
doCheck = true;
checkPhase = ''
2015-08-02 20:03:26 +00:00
mkdir $PWD/tmp
for i in testing/file.h xdelta3-test.h; do
substituteInPlace $i --replace /tmp $PWD/tmp
done
2015-04-16 21:25:24 +00:00
./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;
2015-04-16 21:25:24 +00:00
platforms = with platforms; linux;
maintainers = with maintainers; [ nckx ];
};
}