Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
will be squashed before merge
  • Loading branch information
cwyc committed May 25, 2022
1 parent 3beecc8 commit b79df1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 3 additions & 5 deletions pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ makeSetupHook {
# We use the wrapProgram function.
makeWrapper
];
substitutions = let
loadersPath = (lib.strings.removeSuffix "/" gdk-pixbuf.moduleDir) + ".cache";
in {
STANDARD_GDK_PIXBUF_MODULES = "${gdk-pixbuf}/${loadersPath}:${librsvg}/${loadersPath}";
LOADERS_PATH = loadersPath;
substitutions = {
STANDARD_GDK_PIXBUF_MODULES = lib.makeSearchPathOutput "lib" gdk-pixbuf.cacheFile [ gdk-pixbuf librsvg ];
GDK_PIXBUF_CACHE_FILE = gdk-pixbuf.cacheFile;

passthru.tests = let
sample-project = ./tests/sample-project;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gappsWrapperArgsHook() {

if [ -n "$extraGdkPixbufModules" ]; then
for pkg in $extraGdkPixbufModules; do
gappsWrapperArgs+=(--prefix GDK_PIXBUF_MODULE_FILE : "$pkg/@LOADERS_PATH@")
gappsWrapperArgs+=(--prefix GDK_PIXBUF_MODULE_FILE : "$pkg/@GDK_PIXBUF_CACHE_FILE@")
done
fi

Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/libraries/gdk-pixbuf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
patches = [
# Move installed tests to a separate output
./installed-tests-path.patch
# Allow for multiple loader.cache files specified in $GDK_PIXBUF_MODULE_FILE, delimited by ":"
# Allow for multiple loaders.cache files specified in $GDK_PIXBUF_MODULE_FILE, delimited by ":"
./multiple-module-files.patch
];

Expand Down Expand Up @@ -144,6 +144,7 @@ stdenv.mkDerivation rec {

# gdk_pixbuf_moduledir variable from gdk-pixbuf-2.0.pc
moduleDir = "lib/gdk-pixbuf-2.0/2.10.0/loaders";
cacheFile = "lib/gdk-pixbuf-2.0/2.10.0/loaders.cache";
};

meta = with lib; {
Expand Down

0 comments on commit b79df1a

Please sign in to comment.