pop-gtk-theme: fix cross-compilation (#423455)

This commit is contained in:
Colin 2025-07-15 15:40:10 +00:00 committed by GitHub
commit 7b361899c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@
gdk-pixbuf,
librsvg,
python3,
buildPackages,
}:
stdenv.mkDerivation {
@ -50,9 +51,9 @@ stdenv.mkDerivation {
for file in $(find -name render-\*.sh); do
substituteInPlace "$file" \
--replace 'INKSCAPE="/usr/bin/inkscape"' \
'INKSCAPE="${inkscape}/bin/inkscape"' \
'INKSCAPE="${buildPackages.inkscape}/bin/inkscape"' \
--replace 'OPTIPNG="/usr/bin/optipng"' \
'OPTIPNG="${optipng}/bin/optipng"'
'OPTIPNG="${buildPackages.optipng}/bin/optipng"'
done
'';