2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
|
|
|
writeShellApplication,
|
|
|
|
curl,
|
|
|
|
jq,
|
|
|
|
common-updater-scripts,
|
|
|
|
undmg,
|
2023-03-30 22:05:00 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2023-03-30 22:05:00 +00:00
|
|
|
pname = "raycast";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.75.1";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-15 17:15:38 +00:00
|
|
|
name = "Raycast.dmg";
|
|
|
|
url = "https://releases.raycast.com/releases/${finalAttrs.version}/download?build=universal";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-lHGKWj4nn0GsviV83MKgCaQ6HW/CfeP8gg4VXlVXaXg=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontPatch = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontFixup = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
sourceRoot = "Raycast.app";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications/Raycast.app
|
|
|
|
cp -R . $out/Applications/Raycast.app
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.updateScript = lib.getExe (writeShellApplication {
|
|
|
|
name = "raycast-update-script";
|
2024-06-05 15:53:02 +00:00
|
|
|
runtimeInputs = [
|
|
|
|
curl
|
|
|
|
jq
|
|
|
|
common-updater-scripts
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
2023-03-30 22:05:00 +00:00
|
|
|
description = "Control your tools with a few keystrokes";
|
|
|
|
homepage = "https://raycast.app/";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
lovesegfault
|
|
|
|
stepbrobd
|
|
|
|
donteatoreo
|
|
|
|
];
|
|
|
|
platforms = [
|
|
|
|
"aarch64-darwin"
|
|
|
|
"x86_64-darwin"
|
|
|
|
];
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|