tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
bzip2: fix hardcoded version
Vladimír Čunát
3 years ago
b390eb96
7d24b58a
+13
1 changed file
expand all
collapse all
unified
split
pkgs
tools
compression
bzip2
default.nix
+13
pkgs/tools/compression/bzip2/default.nix
···
25
25
sha256 = "sha256-QMufl6ffJVVVVZespvkCbFpB6++R1lnq1687jEsUjr0=";
26
26
})
27
27
];
28
28
+
# Fix up hardcoded version from the above patch, e.g. seen in bzip2.pc or libbz2.so.1.0.N
29
29
+
postPatch = ''
30
30
+
patch <<-EOF
31
31
+
--- configure.ac
32
32
+
+++ configure.ac
33
33
+
@@ -3,3 +3,3 @@
34
34
+
-AC_INIT([bzip2], [1.0.6], [Julian Seward <jseward@bzip.org>])
35
35
+
+AC_INIT([bzip2], [${version}], [Julian Seward <jseward@bzip.org>])
36
36
+
BZIP2_LT_CURRENT=1
37
37
+
-BZIP2_LT_REVISION=6
38
38
+
+BZIP2_LT_REVISION=${lib.versions.patch version}
39
39
+
EOF
40
40
+
'';
28
41
29
42
strictDeps = true;
30
43
nativeBuildInputs = [ autoreconfHook ];