gtk2: fixup splitting

I forgot these changes were needed to make it build.
Leaving gtk3 and gnome stuff after 3.16.
wip/yesman
Vladimír Čunát 9 years ago
parent 6b8a8ca59f
commit d24b3aec91
  1. 11
      pkgs/development/libraries/gtk+/2.x.nix
  2. 10
      pkgs/development/libraries/gtk+/setup-hook.sh

@ -15,13 +15,16 @@ stdenv.mkDerivation rec {
sha256 = "1x14rnjvqslpa1q19fp1qalz5sxds72amsgjk8m7769rwk511jr0";
};
outputs = [ "dev" "out" "bin" "doc" ];
outputs = [ "dev" "out" "doc" ];
outputBin = "dev";
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (libintlOrEmpty != []) "-lintl";
nativeBuildInputs = [ perl pkgconfig gettext ];
setupHook = ./setup-hook.sh;
nativeBuildInputs = [ setupHook perl pkgconfig gettext ];
propagatedBuildInputs = with xlibs; with stdenv.lib;
[ glib cairo pango gdk_pixbuf atk ]
@ -37,6 +40,10 @@ stdenv.mkDerivation rec {
then "--disable-glibtest --disable-introspection --disable-visibility"
else "--with-xinput=yes";
postInstall = ''
_moveToOutput share/gtk-2.0/demo "$doc"
'';
passthru = {
gtkExeEnvPostBuild = ''
rm $out/lib/gtk-2.0/2.10.0/immodules.cache

@ -0,0 +1,10 @@
fixupOutputHooks+=(_gtk2CleanComments)
# Clean comments that link to generator of the file
_gtk2CleanComments() {
local f="$prefix/lib/gtk-2.0/2.10.0/immodules.cache"
if [ -f "$f" ]; then
sed 's|Created by .*bin/gtk-query-|Created by bin/gtk-query-|' -i "$f"
fi
}
Loading…
Cancel
Save