tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
f3: fix linux build
Evils
3 years ago
bb9bc68e
b7d8c687
+16
-14
1 changed file
expand all
collapse all
unified
split
pkgs
tools
filesystems
f3
default.nix
+16
-14
pkgs/tools/filesystems/f3/default.nix
···
1
1
-
{ stdenv, lib, fetchFromGitHub
2
2
-
, parted, systemd, argp-standalone
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, parted
5
5
+
, systemd
6
6
+
, argp-standalone
3
7
}:
4
8
5
9
stdenv.mkDerivation rec {
···
14
18
};
15
19
16
20
postPatch = ''
17
17
-
sed -i 's/-oroot -groot//' Makefile
21
21
+
sed -i 's/-oroot -groot//' Makefile
18
22
19
19
-
for f in f3write.h2w log-f3wr; do
20
20
-
substituteInPlace $f \
21
21
-
--replace '$(dirname $0)' $out/bin
22
22
-
done
23
23
+
for f in f3write.h2w log-f3wr; do
24
24
+
substituteInPlace $f \
25
25
+
--replace '$(dirname $0)' $out/bin
26
26
+
done
23
27
'';
24
28
25
25
-
buildInputs = lib.optional stdenv.isLinux [ systemd parted ]
26
26
-
++ lib.optional stdenv.isDarwin [ argp-standalone ];
29
29
+
buildInputs = lib.optionals stdenv.isLinux [ systemd parted ]
30
30
+
++ lib.optionals stdenv.isDarwin [ argp-standalone ];
27
31
28
28
-
enableParallelBuilding = true;
29
29
-
30
30
-
buildFlags = [
32
32
+
buildFlags = [
31
33
"all" # f3read, f3write
32
34
]
33
35
++ lib.optional stdenv.isLinux "extra"; # f3brew, f3fix, f3probe
···
48
50
49
51
meta = with lib; {
50
52
description = "Fight Flash Fraud";
51
51
-
homepage = "http://oss.digirati.com.br/f3/";
53
53
+
homepage = "https://fight-flash-fraud.readthedocs.io/en/stable/";
52
54
license = licenses.gpl3Plus;
53
53
-
maintainers = with maintainers; [ makefu ];
55
55
+
maintainers = with maintainers; [ makefu evils ];
54
56
};
55
57
}