From e6a166be251ee56459c8847fd298f1191e31778f Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 8 Jul 2024 13:58:31 +0800 Subject: [PATCH] scripts/screenshot: fix replace matching --- pkgs/scripts/screenshot.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/scripts/screenshot.nix b/pkgs/scripts/screenshot.nix index a587b54..fcbb0f9 100644 --- a/pkgs/scripts/screenshot.nix +++ b/pkgs/scripts/screenshot.nix @@ -14,10 +14,10 @@ makeScript { runtimeInputs = [coreutils jq grim slurp swappy wl-clipboard libnotify]; src = fetchurl { url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot"; - hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU="; + hash = "sha256-w0zdCX6az0WNM0G4RrNuKbQ0O9aSIK6ssAMMaFlsjA0="; postFetch = '' substituteInPlace $out \ - --replace-warn "DIR=\''${SCREENSHOT_DIR:=$HOME/Screenshots}" "DIR=$HOME/Pictures/Screenshots" + --replace-fail 'DIR=''${SCREENSHOT_DIR:=$HOME/Screenshots}' 'DIR=$HOME/Pictures/Screenshots' ''; }; }