* Added bsdiff 4.2. Wow, this is even better than zdelta (which in
turn appears to be better than vdelta). svn path=/nixpkgs/trunk/; revision=1819
This commit is contained in:
parent
9ebbbd25cc
commit
1d9072670b
@ -106,6 +106,10 @@ rec {
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bsdiff = (import ../tools/compression/bsdiff) {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
which = (import ../tools/system/which) {
|
which = (import ../tools/system/which) {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
@ -15,6 +15,7 @@ let {
|
|||||||
gzip
|
gzip
|
||||||
bzip2
|
bzip2
|
||||||
zdelta
|
zdelta
|
||||||
|
bsdiff
|
||||||
wget
|
wget
|
||||||
par2cmdline
|
par2cmdline
|
||||||
cksfv
|
cksfv
|
||||||
|
8
pkgs/tools/compression/bsdiff/builder.sh
Normal file
8
pkgs/tools/compression/bsdiff/builder.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
. $stdenv/setup
|
||||||
|
|
||||||
|
installFlags="PREFIX=$out INSTALL=install"
|
||||||
|
|
||||||
|
ensureDir "$out/bin"
|
||||||
|
ensureDir "$out/man/man1"
|
||||||
|
|
||||||
|
genericBuild
|
11
pkgs/tools/compression/bsdiff/default.nix
Normal file
11
pkgs/tools/compression/bsdiff/default.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "bsdiff-4.2";
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://www.daemonology.net/bsdiff/bsdiff-4.2.tar.gz;
|
||||||
|
md5 = "9f582a77eb76d116d82d1ad268ef48fa";
|
||||||
|
};
|
||||||
|
patches = [./makefile.patch];
|
||||||
|
}
|
22
pkgs/tools/compression/bsdiff/makefile.patch
Normal file
22
pkgs/tools/compression/bsdiff/makefile.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff -rc bsdiff-orig/Makefile bsdiff-4.2/Makefile
|
||||||
|
*** bsdiff-orig/Makefile 2004-07-11 20:10:02.000000000 +0200
|
||||||
|
--- bsdiff-4.2/Makefile 2004-11-29 22:15:05.000000000 +0100
|
||||||
|
***************
|
||||||
|
*** 1,7 ****
|
||||||
|
CFLAGS += -O3
|
||||||
|
- .ifdef BZIP2
|
||||||
|
- CFLAGS += -DBZIP2=\"${BZIP2}\"
|
||||||
|
- .endif
|
||||||
|
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
INSTALL_PROGRAM ?= ${INSTALL} -c -s -m 555
|
||||||
|
--- 1,4 ----
|
||||||
|
***************
|
||||||
|
*** 13,18 ****
|
||||||
|
|
||||||
|
install:
|
||||||
|
${INSTALL_PROGRAM} bsdiff bspatch ${PREFIX}/bin
|
||||||
|
- .ifndef WITHOUT_MAN
|
||||||
|
${INSTALL_MAN} bsdiff.1 bspatch.1 ${PREFIX}/man/man1
|
||||||
|
- .endif
|
||||||
|
--- 10,13 ----
|
Loading…
Reference in New Issue
Block a user