tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cflow: 1.7 -> 1.8
authored by
R. Ryantm
and committed by
Weijia Wang
5 months ago
35bf41ff
5fd87a28
+8
-7
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
cf
cflow
package.nix
+8
-7
pkgs/by-name/cf/cflow/package.nix
···
8
8
9
9
stdenv.mkDerivation rec {
10
10
pname = "cflow";
11
11
-
version = "1.7";
11
11
+
version = "1.8";
12
12
13
13
src = fetchurl {
14
14
-
url = "mirror://gnu/${pname}/${pname}-${version}.tar.bz2";
15
15
-
sha256 = "sha256-0BFGyvkAHiZhM0F8KoJYpktfwW/LCCoU9lKCBNDJcIY=";
14
14
+
url = "mirror://gnu/cflow/cflow-${version}.tar.bz2";
15
15
+
hash = "sha256-gyFie1W2x4d/akP8xvn4RqlLFHaggaA1Rl96eNNJmrg=";
16
16
};
17
17
18
18
-
patchPhase = ''
19
19
-
substituteInPlace "src/cflow.h" \
20
20
-
--replace "/usr/bin/cpp" \
21
21
-
"$(cat ${stdenv.cc}/nix-support/orig-cc)/bin/cpp"
18
18
+
postPatch = ''
19
19
+
substituteInPlace "config.h.in" \
20
20
+
--replace-fail "[[__maybe_unused__]]" "__attribute__((__unused__))"
21
21
+
substituteInPlace "src/cflow.h" \
22
22
+
--replace-fail "/usr/bin/cpp" "${stdenv.cc.cc}/bin/cpp"
22
23
'';
23
24
24
25
buildInputs = [