From daddbb141b1ea353942d0d1070b8a03a7128fa05 Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Mon, 18 Mar 2024 14:21:49 +0000 Subject: [PATCH] plymouth: fail if substitution does not apply (#293) Fixes #225 --- modules/plymouth/nixos.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/plymouth/nixos.nix b/modules/plymouth/nixos.nix index e9a83be4..b76c46bd 100644 --- a/modules/plymouth/nixos.nix +++ b/modules/plymouth/nixos.nix @@ -30,13 +30,13 @@ let if cfg.blackBackground then '' substituteInPlace $themeDir/stylix.script \ - --replace "%BASE00%" "0, 0, 0" \ - --replace "%BASE05%" "1, 1, 1" + --replace-fail "%BASE00%" "0, 0, 0" \ + --replace-fail "%BASE05%" "1, 1, 1" '' else '' substituteInPlace $themeDir/stylix.script \ - --replace "%BASE00%" "${base00-dec-r}, ${base00-dec-g}, ${base00-dec-b}" \ - --replace "%BASE05%" "${base05-dec-r}, ${base05-dec-g}, ${base05-dec-b}" + --replace-fail "%BASE00%" "${base00-dec-r}, ${base00-dec-g}, ${base00-dec-b}" \ + --replace-fail "%BASE05%" "${base05-dec-r}, ${base05-dec-g}, ${base05-dec-b}" '' } @@ -68,8 +68,8 @@ in { # Reduce size postFetch = '' substituteInPlace $out \ - --replace "141.5919" "70.79595" \ - --replace "122.80626" "61.40313" + --replace-fail "141.5919" "70.79595" \ + --replace-fail "122.80626" "61.40313" ''; sha256 = "4+MWdqESKo9omd3q0WfRmnrd3Wpe2feiayMnQlA4izU="; };