diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2020-02-23 19:22:30 +0100 |
---|---|---|
committer | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2020-02-23 19:23:43 +0100 |
commit | 07cf03630f88e8e0b1c8eab755734fa7e3c225d2 (patch) | |
tree | fc8fe209ed2296402b7b160ba551a7bf1ab8a6ff | |
parent | 98bb71f41b194f00607308fab704397a9aaf971d (diff) | |
download | nixlib-07cf03630f88e8e0b1c8eab755734fa7e3c225d2.tar nixlib-07cf03630f88e8e0b1c8eab755734fa7e3c225d2.tar.gz nixlib-07cf03630f88e8e0b1c8eab755734fa7e3c225d2.tar.bz2 nixlib-07cf03630f88e8e0b1c8eab755734fa7e3c225d2.tar.lz nixlib-07cf03630f88e8e0b1c8eab755734fa7e3c225d2.tar.xz nixlib-07cf03630f88e8e0b1c8eab755734fa7e3c225d2.tar.zst nixlib-07cf03630f88e8e0b1c8eab755734fa7e3c225d2.zip |
lbzip2: fix build
The release tarball is no longer available at the specified URL, so building from git. Also, the gnulib in the release tarball was too old for our recent glibc version.
-rw-r--r-- | pkgs/tools/compression/lbzip2/default.nix | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/tools/compression/lbzip2/default.nix b/pkgs/tools/compression/lbzip2/default.nix index 7e9cc055abf5..99d41c06ec64 100644 --- a/pkgs/tools/compression/lbzip2/default.nix +++ b/pkgs/tools/compression/lbzip2/default.nix @@ -1,13 +1,23 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchFromGitHub, gnulib, perl, autoconf, automake }: stdenv.mkDerivation rec { - name = "lbzip2-2.5"; + version = "2.5"; + name = "lbzip2-${version}"; - src = fetchurl { - url = "http://archive.lbzip2.org/${name}.tar.gz"; - sha256 = "1sahaqc5bw4i0iyri05syfza4ncf5cml89an033fspn97klmxis6"; + src = fetchFromGitHub { + owner = "kjn"; + repo = "lbzip2"; + sha256 = "1h321wva6fp6khz6x0i6rqb76xh327nw6v5jhgjpcckwdarj5jv8"; + rev = "v${version}"; }; + buildInputs = [ gnulib perl ]; + nativeBuildInputs = [ autoconf automake ]; + + preConfigure = '' + ./build-aux/autogen.sh + ''; + meta = with stdenv.lib; { homepage = "https://github.com/kjn/lbzip2"; # Formerly http://lbzip2.org/ description = "Parallel bzip2 compression utility"; |