2023-03-28 04:29:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchurl
|
|
|
|
, undmg
|
|
|
|
}:
|
|
|
|
|
2023-06-30 17:14:08 +00:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2023-03-28 04:29:01 +00:00
|
|
|
pname = "raycast";
|
2023-09-27 02:44:43 +00:00
|
|
|
version = "1.59.0";
|
2023-03-28 04:29:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-06-15 18:01:31 +00:00
|
|
|
name = "Raycast.dmg";
|
2023-06-30 17:14:08 +00:00
|
|
|
url = "https://releases.raycast.com/releases/${finalAttrs.version}/download?build=universal";
|
2023-09-27 02:44:43 +00:00
|
|
|
hash = "sha256-EA8DzfJtd1lM0/N1bQ8x9GQ8KiILwRKPIFKk6XlaBhg=";
|
2023-03-28 04:29:01 +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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Control your tools with a few keystrokes";
|
|
|
|
homepage = "https://raycast.app/";
|
2023-06-30 17:14:08 +00:00
|
|
|
license = with licenses; [ unfree ];
|
2023-03-28 04:29:01 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
maintainers = with maintainers; [ lovesegfault stepbrobd ];
|
2023-06-30 17:14:08 +00:00
|
|
|
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
|
2023-03-28 04:29:01 +00:00
|
|
|
};
|
2023-06-30 17:14:08 +00:00
|
|
|
})
|