gtk2: fixup splitting

I forgot these changes were needed to make it build.
Leaving gtk3 and gnome stuff after 3.16.
This commit is contained in:
Vladimír Čunát 2015-04-20 20:13:56 +02:00
parent 6b8a8ca59f
commit d24b3aec91
2 changed files with 19 additions and 2 deletions

View file

@ -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

View file

@ -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
}