diff options
author | Vladimír Čunát <v@cunat.cz> | 2022-07-20 20:08:29 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2022-07-20 20:08:29 +0200 |
commit | f3bfbd3dc2f65ada79ccd5876604889127cb416f (patch) | |
tree | e69a3e3d419e52a783ad226907702d0f52f3036c /pkgs/tools/compression | |
parent | 659bbdd994d7bf52820db4f006ad36bf59c2efba (diff) | |
parent | b390eb96c268da8057863fe31903e4dafa57ed01 (diff) |
Merge #181708: bzip2: fix hardcoded version (into staging)
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r-- | pkgs/tools/compression/bzip2/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/compression/bzip2/default.nix b/pkgs/tools/compression/bzip2/default.nix index dafd6a6070dfc..3b48195d11d69 100644 --- a/pkgs/tools/compression/bzip2/default.nix +++ b/pkgs/tools/compression/bzip2/default.nix @@ -25,6 +25,19 @@ stdenv.mkDerivation rec { sha256 = "sha256-QMufl6ffJVVVVZespvkCbFpB6++R1lnq1687jEsUjr0="; }) ]; + # Fix up hardcoded version from the above patch, e.g. seen in bzip2.pc or libbz2.so.1.0.N + postPatch = '' + patch <<-EOF + --- configure.ac + +++ configure.ac + @@ -3,3 +3,3 @@ + -AC_INIT([bzip2], [1.0.6], [Julian Seward <jseward@bzip.org>]) + +AC_INIT([bzip2], [${version}], [Julian Seward <jseward@bzip.org>]) + BZIP2_LT_CURRENT=1 + -BZIP2_LT_REVISION=6 + +BZIP2_LT_REVISION=${lib.versions.patch version} + EOF + ''; strictDeps = true; nativeBuildInputs = [ autoreconfHook ]; |