forked from containers/conmon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.nix
26 lines (26 loc) · 883 Bytes
/
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
self: super:
{
libseccomp = super.libseccomp.overrideAttrs (x: {
doCheck = false;
dontDisableStatic = true;
});
pcre2 = super.pcre2.overrideAttrs (x: {
configureFlags = x.configureFlags ++ [ "--enable-static" ];
});
glib = super.glib.overrideAttrs (x: {
outputs = [ "bin" "out" "dev" ];
mesonFlags = [
"-Ddefault_library=static"
"-Ddevbindir=${placeholder ''dev''}/bin"
"-Dgtk_doc=false"
"-Dnls=disabled"
];
postInstall = ''
moveToOutput "share/glib-2.0" "$dev"
substituteInPlace "$dev/bin/gdbus-codegen" --replace "$out" "$dev"
sed -i "$dev/bin/glib-gettextize" -e "s|^gettext_dir=.*|gettext_dir=$dev/share/glib-2.0/gettext|"
sed '1i#line 1 "${x.pname}-${x.version}/include/glib-2.0/gobject/gobjectnotifyqueue.c"' \
-i "$dev"/include/glib-2.0/gobject/gobjectnotifyqueue.c
'';
});
}