Merge pull request #304053 from DontEatOreo/fix-updateScript-raycast

This commit is contained in:
Bernardo Meurer 2024-04-14 13:34:32 -04:00 committed by GitHub
commit 1a18c38eaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 13 deletions

View File

@ -36,25 +36,23 @@ 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";
homepage = "https://raycast.app/";
license = with licenses; [ unfree ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ lovesegfault stepbrobd ];
maintainers = with maintainers; [ lovesegfault stepbrobd donteatoreo ];
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
};
})