diff options
author | DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> | 2024-04-14 18:15:10 +0300 |
---|---|---|
committer | DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> | 2024-04-14 18:15:10 +0300 |
commit | 0951eef3801b91f7cc408cdae123c38e7b8b4f03 (patch) | |
tree | 7fc8cd98f180e61823db38839ae1e3a09f3d5753 /pkgs/os-specific | |
parent | 838623c9aca39aeb8947cdbf93040c67b4065a53 (diff) |
raycast: fix passthru.updateScript
- fixed updateScript to work with maintainers/scripts/update.nix
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/darwin/raycast/default.nix | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/pkgs/os-specific/darwin/raycast/default.nix b/pkgs/os-specific/darwin/raycast/default.nix index 9280ebe8fa8bb..8d26173aface5 100644 --- a/pkgs/os-specific/darwin/raycast/default.nix +++ b/pkgs/os-specific/darwin/raycast/default.nix @@ -36,18 +36,16 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postInstall ''; - passthru = { - updateScript = writeShellApplication { - name = "raycast-update-script"; - runtimeInputs = [ curl jq common-updater-scripts ]; - text = '' - set -eo pipefail - url=$(curl --silent "https://releases.raycast.com/releases/latest?build=universal") - version=$(echo "$url" | jq -r '.version') - update-source-version raycast "$version" --file=./pkgs/os-specific/darwin/raycast/default.nix - ''; - }; - }; + passthru.updateScript = lib.getExe (writeShellApplication { + name = "raycast-update-script"; + runtimeInputs = [ curl jq common-updater-scripts ]; + text = '' + set -eo pipefail + url=$(curl --silent "https://releases.raycast.com/releases/latest?build=universal") + version=$(echo "$url" | jq -r '.version') + update-source-version raycast "$version" --file=./pkgs/os-specific/darwin/raycast/default.nix + ''; + }); meta = with lib; { description = "Control your tools with a few keystrokes"; |