From c5602cebbf71928710ebd7b9f92f18c603596f4e Mon Sep 17 00:00:00 2001 From: materus Date: Sun, 15 Sep 2024 21:40:25 +0200 Subject: [PATCH] scripts: convert: add nix build to ensure path --- extraFiles/scripts/convert_images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extraFiles/scripts/convert_images.sh b/extraFiles/scripts/convert_images.sh index 45b5c27..4be8954 100755 --- a/extraFiles/scripts/convert_images.sh +++ b/extraFiles/scripts/convert_images.sh @@ -1,6 +1,6 @@ #/usr/bin/env bash IFS=$'\n' - +nix build nixpkgs\#imagemagick --no-link CONVERT="$(nix eval nixpkgs\#imagemagick.outPath | tr -d '"')/bin/magick" convert_cmd () { if ! command -v magick &> /dev/null; then $CONVERT "$@"; else convert "$@"; fi