ncompress provided by griswold

svn path=/nixpkgs/trunk/; revision=19410

+67
+14
pkgs/tools/compression/ncompress/builder.sh
··· 1 + source $stdenv/setup 2 + installFlags="PREFIX=$out" 3 + 4 + preBuild() { 5 + cp Makefile.def Makefile 6 + } 7 + 8 + postInstall() { 9 + rm $out/bin/uncompress* $out/bin/zcat* 10 + ln -s compress $out/bin/uncompress 11 + ln -s compress $out/bin/zcat 12 + } 13 + 14 + genericBuild
+18
pkgs/tools/compression/ncompress/default.nix
··· 1 + {stdenv, fetchurl}: 2 + 3 + stdenv.mkDerivation { 4 + name = "ncompress-4.2.4"; 5 + 6 + builder = ./builder.sh; 7 + 8 + patches = [ ./makefile.patch ]; 9 + 10 + src = fetchurl { 11 + url = mirror://sourceforge/project/ncompress/ncompress%20%28bugfixes%29/ncompress-4.2.4.2/ncompress-4.2.4.2.tar.gz; 12 + sha256 = "38158c792b769fe23c74f8d3ea0e27569a9b1d21b53a4faf8acbb1ac03743221"; 13 + }; 14 + 15 + meta = { 16 + homepage = http://sourceforge.net/projects/ncompress/files/ncompress%20%28bugfixes%29/ncompress-4.2.4.2/ncompress-4.2.4.2.tar.gz/download; 17 + }; 18 + }
+31
pkgs/tools/compression/ncompress/makefile.patch
··· 1 + diff -Naur ncompress-4.2.4.2.orig/Makefile.def ncompress-4.2.4.2/Makefile.def 2 + --- ncompress-4.2.4.2.orig/Makefile.def 2007-09-06 22:28:42.000000000 -0500 3 + +++ ncompress-4.2.4.2/Makefile.def 2009-08-18 12:30:53.000000000 -0500 4 + @@ -3,14 +3,16 @@ 5 + # C complier 6 + #CC=cc 7 + 8 + +PREFIX=/usr/local 9 + + 10 + # Install prefix 11 + DESTDIR= 12 + 13 + # Install directory for binarys 14 + -BINDIR=/usr/local/bin 15 + +BINDIR=$(PREFIX)/bin 16 + 17 + # Install directory for manual 18 + -MANDIR=/usr/local/man/man1 19 + +MANDIR=$(PREFIX)/man/man1 20 + 21 + # compiler options: 22 + # options is a collection of: 23 + @@ -31,7 +33,7 @@ 24 + # -DDEF_ERRNO=1 Define error (not defined in errno.h). 25 + # -DMAXSEG_64K=1 -BITS=16 Support segment processsor like 80286. 26 + # 27 + -options= $(CFLAGS) $(CPPFLAGS) -DDIRENT=1 -DUSERMEM=800000 -DREGISTERS=3 28 + +options= $(CFLAGS) $(CPPFLAGS) -DDIRENT=1 -DUSERMEM=800000 -DREGISTERS=3 -DNOFUNCDEF=1 29 + 30 + # libary options 31 + LBOPT= $(LDFLAGS)
+4
pkgs/top-level/all-packages.nix
··· 442 442 inherit fetchurl stdenv; 443 443 }; 444 444 445 + ncompress = import ../tools/compression/ncompress { 446 + inherit fetchurl stdenv; 447 + }; 448 + 445 449 bzip2 = useFromStdenv "bzip2" 446 450 (import ../tools/compression/bzip2 { 447 451 inherit fetchurl stdenv;