gnome3.gnome-settings-daemon: add cflag G_DISABLE_CAST_CHECKS

This is what would have been passed before with the release
buildtype.

See: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/blob/GNOME_SETTINGS_DAEMON_3_32_1/meson.build#L73
This commit is contained in:
worldofpeace 2019-08-05 06:13:01 -04:00
parent 60266eb504
commit c7c727fa93

View file

@ -95,6 +95,12 @@ stdenv.mkDerivation rec {
"-Dudev_dir=${placeholder "out"}/lib/udev" "-Dudev_dir=${placeholder "out"}/lib/udev"
]; ];
NIX_CFLAGS_COMPILE = [
# Default for release buildtype but passed manually because
# we're using plain
"-DG_DISABLE_CAST_CHECKS"
];
# So the polkit policy can reference /run/current-system/sw/bin/gnome-settings-daemon/gsd-backlight-helper # So the polkit policy can reference /run/current-system/sw/bin/gnome-settings-daemon/gsd-backlight-helper
postFixup = '' postFixup = ''
mkdir -p $out/bin/gnome-settings-daemon mkdir -p $out/bin/gnome-settings-daemon