raycast: fix passthru.updateScript

- fixed updateScript to work with maintainers/scripts/update.nix
This commit is contained in:
DontEatOreo 2024-04-14 18:15:10 +03:00
parent 838623c9ac
commit 0951eef380
No known key found for this signature in database
GPG Key ID: 0DB5361BEEE530AB

View File

@ -36,8 +36,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runHook postInstall
'';
passthru = {
updateScript = writeShellApplication {
passthru.updateScript = lib.getExe (writeShellApplication {
name = "raycast-update-script";
runtimeInputs = [ curl jq common-updater-scripts ];
text = ''
@ -46,8 +45,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
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";