tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
audit: tweaks to make musl compat
Will Dietz
8 years ago
32b472dd
cbdd2087
+17
-1
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
audit
default.nix
+17
-1
pkgs/os-specific/linux/audit/default.nix
···
1
{
2
-
stdenv, buildPackages, fetchurl,
3
enablePython ? false, python ? null,
4
}:
5
···
27
28
enableParallelBuilding = true;
29
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
30
meta = {
31
description = "Audit Library";
32
homepage = http://people.redhat.com/sgrubb/audit/;
···
1
{
2
+
stdenv, buildPackages, fetchurl, fetchpatch,
3
enablePython ? false, python ? null,
4
}:
5
···
27
28
enableParallelBuilding = true;
29
30
+
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl [
31
+
(fetchpatch {
32
+
url = "https://git.alpinelinux.org/cgit/aports/plain/main/audit/0002-auparse-remove-use-of-rawmemchr.patch?id=3e57180fdf3f90c30a25aea44f57846efc93a696";
33
+
name = "0002-auparse-remove-use-of-rawmemchr.patch";
34
+
sha256 = "1caaqbfgb2rq3ria5bz4n8x30ihgihln6w9w9a46k62ba0wh9rkz";
35
+
})
36
+
(fetchpatch {
37
+
url = "https://git.alpinelinux.org/cgit/aports/plain/main/audit/0003-all-get-rid-of-strndupa.patch?id=3e57180fdf3f90c30a25aea44f57846efc93a696";
38
+
name = "0003-all-get-rid-of-strndupa.patch";
39
+
sha256 = "1ddrm6a0ijrf7caw1wpw2kkbjp2lkxkmc16v51j5j7dvdalc6591";
40
+
})
41
+
];
42
+
43
+
prePatch = ''
44
+
sed -i 's,#include <sys/poll.h>,#include <poll.h>\n#include <limits.h>,' audisp/audispd.c
45
+
'';
46
meta = {
47
description = "Audit Library";
48
homepage = http://people.redhat.com/sgrubb/audit/;