diff options
author | DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> | 2024-04-14 18:15:10 +0300 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-04-14 17:35:02 +0000 |
commit | f6c33b1214cd967303011afb67745cbfc56bb89b (patch) | |
tree | 920686cb50b643e9e59ff353efbd80e23f6d53e6 /pkgs/os-specific | |
parent | 82829f5324143e069d48f52e8af4fd8603609441 (diff) |
raycast: fix passthru.updateScript
- fixed updateScript to work with maintainers/scripts/update.nix (cherry picked from commit 0951eef3801b91f7cc408cdae123c38e7b8b4f03)
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"; |