nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 55 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 gnulib, 7 perl, 8 autoconf, 9 automake, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "lbzip2"; 14 version = "2.5"; 15 16 src = fetchFromGitHub { 17 owner = "kjn"; 18 repo = "lbzip2"; 19 rev = "v${finalAttrs.version}"; 20 sha256 = "1h321wva6fp6khz6x0i6rqb76xh327nw6v5jhgjpcckwdarj5jv8"; 21 }; 22 23 patches = [ 24 # This avoids an implicit function declaration when building gnulib's 25 # xmalloc.c, addressing a build failure with future compiler version. 26 # https://github.com/kjn/lbzip2/pull/33 27 (fetchpatch { 28 name = "GNULIB_XALLOC_DIE.patch"; 29 url = "https://github.com/kjn/lbzip2/commit/32b5167940ec817e454431956040734af405a9de.patch"; 30 hash = "sha256-YNgmkh4bksIq5kBgZP+8o97aMm9CzFZldfUW6L5DGXk="; 31 }) 32 ]; 33 34 buildInputs = [ 35 gnulib 36 perl 37 ]; 38 nativeBuildInputs = [ 39 autoconf 40 automake 41 ]; 42 43 preConfigure = '' 44 substituteInPlace configure.ac --replace 'AC_PREREQ([2.63])' 'AC_PREREQ(2.64)' 45 ./build-aux/autogen.sh 46 ''; 47 48 meta = { 49 homepage = "https://github.com/kjn/lbzip2"; # Formerly http://lbzip2.org/ 50 description = "Parallel bzip2 compression utility"; 51 license = lib.licenses.gpl3; 52 maintainers = [ ]; 53 platforms = lib.platforms.unix; 54 }; 55})