mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
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:
parent
6b8a8ca59f
commit
d24b3aec91
@ -15,13 +15,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1x14rnjvqslpa1q19fp1qalz5sxds72amsgjk8m7769rwk511jr0";
|
sha256 = "1x14rnjvqslpa1q19fp1qalz5sxds72amsgjk8m7769rwk511jr0";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "dev" "out" "bin" "doc" ];
|
outputs = [ "dev" "out" "doc" ];
|
||||||
|
outputBin = "dev";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (libintlOrEmpty != []) "-lintl";
|
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;
|
propagatedBuildInputs = with xlibs; with stdenv.lib;
|
||||||
[ glib cairo pango gdk_pixbuf atk ]
|
[ glib cairo pango gdk_pixbuf atk ]
|
||||||
@ -37,6 +40,10 @@ stdenv.mkDerivation rec {
|
|||||||
then "--disable-glibtest --disable-introspection --disable-visibility"
|
then "--disable-glibtest --disable-introspection --disable-visibility"
|
||||||
else "--with-xinput=yes";
|
else "--with-xinput=yes";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
_moveToOutput share/gtk-2.0/demo "$doc"
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
gtkExeEnvPostBuild = ''
|
gtkExeEnvPostBuild = ''
|
||||||
rm $out/lib/gtk-2.0/2.10.0/immodules.cache
|
rm $out/lib/gtk-2.0/2.10.0/immodules.cache
|
||||||
|
10
pkgs/development/libraries/gtk+/setup-hook.sh
Normal file
10
pkgs/development/libraries/gtk+/setup-hook.sh
Normal 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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user