gtk: use one clean-immodules-cache setup-hook
Use one hook with substituteAll instead of duplicating the hook for every version.
This commit is contained in:
committed by
github-actions[bot]
parent
e3d3643f1b
commit
45bdf88043
@@ -1,4 +1,4 @@
|
||||
{ config, lib, stdenv, fetchurl, pkg-config, gettext, glib, atk, pango, cairo, perl, xorg
|
||||
{ config, lib, substituteAll, stdenv, fetchurl, pkg-config, gettext, glib, atk, pango, cairo, perl, xorg
|
||||
, gdk-pixbuf, xlibsWrapper, gobject-introspection
|
||||
, xineramaSupport ? stdenv.isLinux
|
||||
, cupsSupport ? config.gtk2.cups or stdenv.isLinux, cups ? null
|
||||
@@ -12,6 +12,16 @@ assert cupsSupport -> cups != null;
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
gtkCleanImmodulesCache = substituteAll {
|
||||
src = ./hooks/clean-immodules-cache.sh;
|
||||
gtk_module_path = "gtk-2.0";
|
||||
gtk_binary_version = "2.10.0";
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtk+";
|
||||
version = "2.24.32";
|
||||
@@ -27,8 +37,8 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
setupHooks = [
|
||||
./hooks/gtk2-clean-immodules-cache.sh
|
||||
./hooks/drop-icon-theme-cache.sh
|
||||
gtkCleanImmodulesCache
|
||||
];
|
||||
|
||||
nativeBuildInputs = setupHooks ++ [ perl pkg-config gettext gobject-introspection ];
|
||||
|
||||
Reference in New Issue
Block a user