From 5125b986021a01e36a77af13bf1b61c07246e3c5 Mon Sep 17 00:00:00 2001 From: Jonas Hoersch Date: Tue, 17 Dec 2013 11:12:29 +0100 Subject: [PATCH] network-manager-applet: re-do schema generation fixes #1355. partial revert of f4d4e12c (introduced by #1313). meta.priority is set to 6 (lower priority than standard) to resolve the conflict of an exported gschemas.compiled for evince as for nm-applet. this linked file is NOT consulted, as both binaries are wrapped to look for their schemas in their nix store path first. a better fix would avoid already avoid linking those gschemas.compiled files into the environment. --- pkgs/tools/networking/network-manager-applet/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/network-manager-applet/default.nix b/pkgs/tools/networking/network-manager-applet/default.nix index 4f72c0e294f2..511a69a858d8 100644 --- a/pkgs/tools/networking/network-manager-applet/default.nix +++ b/pkgs/tools/networking/network-manager-applet/default.nix @@ -33,9 +33,6 @@ stdenv.mkDerivation rec { ''CFLAGS=-DMOBILE_BROADBAND_PROVIDER_INFO=\"${mobile_broadband_provider_info}/share/mobile-broadband-provider-info/serviceproviders.xml\"'' ]; - preFixup = '' - rm $out/share/glib-2.0/schemas/gschemas.compiled''; - postInstall = '' mkdir -p $out/etc/NetworkManager/VPN ln -s ${networkmanager_openvpn}/etc/NetworkManager/VPN/nm-openvpn-service.name $out/etc/NetworkManager/VPN/nm-openvpn-service.name @@ -62,5 +59,9 @@ stdenv.mkDerivation rec { license = licenses.gpl2; maintainers = with maintainers; [ phreedom urkud rickynils ]; platforms = platforms.linux; + + # resolve collision between evince and nm-applet for + # gschemas.compiled + priority = 6; }; }