tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
checkpolicy: fixup includes with glibc-2.26
Vladimír Čunát
8 years ago
d51f9b36
54c14e2f
+6
-5
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
checkpolicy
default.nix
+6
-5
pkgs/os-specific/linux/checkpolicy/default.nix
···
10
10
sha256 = "1m5wjm43lzp6bld8higsvdm2dkddydihhwv9qw2w9r4dm0largcv";
11
11
};
12
12
13
13
+
# Don't build tests
14
14
+
postPatch = ''
15
15
+
sed '/-C test/d' -i Makefile
16
16
+
sed '1i#include <ctype.h>' -i checkpolicy.c
17
17
+
'';
18
18
+
13
19
nativeBuildInputs = [ bison flex ];
14
20
buildInputs = [ libsepol ];
15
21
16
22
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
17
17
-
18
18
-
# Don't build tests
19
19
-
postPatch = ''
20
20
-
sed -i '/-C test/d' Makefile
21
21
-
'';
22
23
23
24
preBuild = ''
24
25
makeFlagsArray+=("LEX=flex")