From d780e942be3caaa81ad8d42fa058af71a4983dc0 Mon Sep 17 00:00:00 2001 From: "Alexander V. Nikolaev" Date: Tue, 8 Jul 2025 14:27:54 +0300 Subject: [PATCH] pop-gtk-theme: fix cross-compilation Use optipng and inkscape from buildPackages, not from target Signed-off-by: Alexander V. Nikolaev --- pkgs/by-name/po/pop-gtk-theme/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/po/pop-gtk-theme/package.nix b/pkgs/by-name/po/pop-gtk-theme/package.nix index ffcd53531128..da11dd534d50 100644 --- a/pkgs/by-name/po/pop-gtk-theme/package.nix +++ b/pkgs/by-name/po/pop-gtk-theme/package.nix @@ -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 '';