From ebd522ea7c029750aadf00e902ea567a09e4e070 Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Fri, 9 Jan 2026 19:39:44 +0100 Subject: [PATCH] stylix/palette: use derivation arguments instead of string interpolation Co-authored-by: Matt Sturgeon (cherry picked from commit 3f6651a26e0127654e6b24a3616239e2eaaf392b) --- stylix/palette.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/stylix/palette.nix b/stylix/palette.nix index 44e339f1..9e72a67e 100644 --- a/stylix/palette.nix +++ b/stylix/palette.nix @@ -80,12 +80,10 @@ in # and not anything indirect such as filling a template, otherwise # the output of the palette generator will not be protected from # garbage collection. - default = pkgs.runCommand "palette.json" { } '' - ${lib.getExe cfg.paletteGenerator} \ - "${cfg.polarity}" \ - ${lib.escapeShellArg cfg.image} \ - "$out" - ''; + default = pkgs.runCommand "palette.json" { + inherit (cfg) image polarity; + nativeBuildInputs = [ cfg.paletteGenerator ]; + } ''palette-generator "$polarity" "$image" "$out"''; }; palette = lib.mkOption {