at v192 44 lines 1.0 kB view raw
1{ stdenv, fetchFromGitHub, autoreconfHook }: 2 3let version = "3.0.10"; in 4stdenv.mkDerivation { 5 name = "xdelta-${version}"; 6 7 src = fetchFromGitHub { 8 sha256 = "0wwxdr01var3f90iwi1lgjpsa4y549g850hyyix5cm0qk67ck4rg"; 9 rev = "v${version}"; 10 repo = "xdelta-devel"; 11 owner = "jmacd"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 postPatch = '' 17 cd xdelta3 18 ''; 19 20 enableParallelBuilding = true; 21 22 doCheck = true; 23 checkPhase = '' 24 mkdir $PWD/tmp 25 for i in testing/file.h xdelta3-test.h; do 26 substituteInPlace $i --replace /tmp $PWD/tmp 27 done 28 ./xdelta3regtest 29 ''; 30 31 installPhase = '' 32 install -D -m755 xdelta3 $out/bin/xdelta3 33 install -D -m644 xdelta3.1 $out/share/man/man1/xdelta3.1 34 ''; 35 36 meta = with stdenv.lib; { 37 inherit version; 38 description = "Binary differential compression in VCDIFF (RFC 3284) format"; 39 homepage = http://xdelta.org/; 40 license = licenses.gpl2Plus; 41 platforms = with platforms; linux; 42 maintainers = with maintainers; [ nckx ]; 43 }; 44}