mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
xdelta 3.0z -> 3.0.9
This commit is contained in:
parent
6e6a41d1d6
commit
bf2a5a8665
1 changed files with 34 additions and 14 deletions
|
@ -1,24 +1,44 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
||||
|
||||
let version = "3.0.9"; in
|
||||
stdenv.mkDerivation {
|
||||
name = "xdelta-3.0z";
|
||||
name = "xdelta-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://xdelta.googlecode.com/files/xdelta3.0z.tar.gz;
|
||||
sha256 = "1rpk4n3yz8x81vakzn3n75h79a2ycm06p5v72djklx0wn9gb412m";
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "1pd7dyq44dbggmwkrr8251anqsf2an67zbvrk4vfnc92jkmjp17i";
|
||||
rev = "v${version}";
|
||||
repo = "xdelta-devel";
|
||||
owner = "jmacd";
|
||||
};
|
||||
|
||||
installPhase =
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
cp xdelta3 $out/bin/
|
||||
buildInputs = [ autoreconfHook ];
|
||||
|
||||
mkdir -p $out/share/man/man1
|
||||
cp xdelta3.1 $out/share/man/man1/
|
||||
'';
|
||||
postPatch = ''
|
||||
cd xdelta3
|
||||
|
||||
meta = {
|
||||
mkdir tmp
|
||||
substituteInPlace testing/file.h --replace /tmp tmp
|
||||
substituteInPlace xdelta3-test.h --replace /tmp $PWD/tmp
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
./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/;
|
||||
description = "A binary diff tool that uses the VCDIFF (RFC 3284) format and compression";
|
||||
license = with licenses; gpl2Plus;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue