From af9c2a534d7eb57ac185b599890e4d1a1a5529d2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 18 Aug 2003 20:58:51 +0000 Subject: [PATCH] * Added bzip2. Note that I added bzip2 to stdenv, but not unzip. This raises an interesting point: what packages should be in stdenv? svn path=/nixpkgs/trunk/; revision=320 --- pkgs/bzip2/bzip2-build.sh | 8 ++++++++ pkgs/bzip2/bzip2.fix | 13 +++++++++++++ pkgs/stdenv-linux/stdenv-generic.fix | 1 + 3 files changed, 22 insertions(+) create mode 100755 pkgs/bzip2/bzip2-build.sh create mode 100644 pkgs/bzip2/bzip2.fix diff --git a/pkgs/bzip2/bzip2-build.sh b/pkgs/bzip2/bzip2-build.sh new file mode 100755 index 000000000000..2fa113aa17a6 --- /dev/null +++ b/pkgs/bzip2/bzip2-build.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. $stdenv/setup || exit 1 + +tar xvfz $src || exit 1 +cd bzip2-* || exit 1 +make || exit 1 +make install PREFIX=$out || exit 1 diff --git a/pkgs/bzip2/bzip2.fix b/pkgs/bzip2/bzip2.fix new file mode 100644 index 000000000000..ff9f42b0d160 --- /dev/null +++ b/pkgs/bzip2/bzip2.fix @@ -0,0 +1,13 @@ +Package( + [ ("name", "bzip2-1.0.2") + + , ("build", Relative("bzip2/bzip2-build.sh")) + + , ("src", Call(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://sources.redhat.com/pub/bzip2/v102/bzip2-1.0.2.tar.gz") + , ("md5", "ee76864958d568677f03db8afad92beb") + ])) + + , ("stdenv", IncludeFix("stdenv-linux/stdenv-nativetools.fix")) + ] +) diff --git a/pkgs/stdenv-linux/stdenv-generic.fix b/pkgs/stdenv-linux/stdenv-generic.fix index 1d7e472410b9..0137b3d3a158 100644 --- a/pkgs/stdenv-linux/stdenv-generic.fix +++ b/pkgs/stdenv-linux/stdenv-generic.fix @@ -18,6 +18,7 @@ Function(["nativeTools"], , IncludeFix("gnutar/gnutar.fix") , IncludeFix("diffutils/diffutils.fix") , IncludeFix("gzip/gzip.fix") + , IncludeFix("bzip2/bzip2.fix") , IncludeFix("gnumake/gnumake.fix") , IncludeFix("binutils/binutils.fix") ]))