From 80609a726d455b4880e10296c147bb73ace8cc19 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Fri, 16 Aug 2024 10:20:31 +0200 Subject: [PATCH] gaugePlugins.makeGaugePlugin: fix updateScript --- pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix b/pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix index 81fbff823802..b9a4b1441632 100644 --- a/pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix +++ b/pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix @@ -71,7 +71,7 @@ stdenvNoCC.mkDerivation (finalAttrs: (lib.recursiveUpdate { hash=$(nix-prefetch-url --type sha256 $url --unpack) sriHash="$(nix hash to-sri --type sha256 $hash)" - yq -iPoj '. + { "$system": { "url": "$url", "hash": "$sriHash" } }' "$tempfile" + yq -iPoj ". + { \"$system\": { \"url\": \"$url\", \"hash\": \"$sriHash\" } }" "$tempfile" } updateSingle() { @@ -81,7 +81,7 @@ stdenvNoCC.mkDerivation (finalAttrs: (lib.recursiveUpdate { hash=$(nix-prefetch-url --type sha256 $url --unpack) sriHash="$(nix hash to-sri --type sha256 $hash)" - yq -iPoj '. + { "url": "$url", "hash": "$sriHash" }' "$tempfile" + yq -iPoj ". + { \"url\": \"$url\", \"hash\": \"$sriHash\" }" "$tempfile" } baseUrl="https://github.com/${repo}/releases/download/$latestTag/${releasePrefix}$latestVersion"