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") ]))