forked from containers/crun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay.nix
38 lines (38 loc) · 1.05 KB
/
overlay.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
let
static = import ./static.nix;
in
self: super:
{
criu = (static super.criu);
gcrypt = (static super.libgcrypt);
gpgme = (static super.gpgme);
libassuan = (static super.libassuan);
libgpgerror = (static super.libgpgerror);
libseccomp = (static super.libseccomp);
libcap = (static super.libcap).overrideAttrs (x: {
postInstall = ''
mkdir -p "$doc/share/doc/${x.pname}-${x.version}"
cp License "$doc/share/doc/${x.pname}-${x.version}/"
mkdir -p "$pam/lib/security"
mv "$lib"/lib/security "$pam/lib"
'';
});
libsystemd = (static super.systemdMinimal).overrideAttrs (x: {
outputs = [ "out" "dev" ];
mesonFlags = x.mesonFlags ++ [
"-Dbpf-compiler=gcc"
"-Dbpf-framework=false"
"-Dglib=false"
"-Dstatic-libsystemd=true"
];
});
yajl = super.yajl.overrideAttrs (x: {
cmakeFlags = (x.cmakeFlags or [ ]) ++ [
"-DBUILD_SHARED_LIBS=OFF"
];
});
zstd = super.zstd.overrideAttrs (x: {
cmakeFlags = x.cmakeFlags ++ [ "-DZSTD_BUILD_CONTRIB:BOOL=OFF" ];
preInstall = "";
});
}