nixpkgs/pkgs/os-specific/darwin/raycast/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1003 B
Nix
Raw Normal View History

{ lib
, stdenvNoCC
, fetchurl
, undmg
}:
2023-06-30 17:14:08 +00:00
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "raycast";
2023-09-27 02:44:43 +00:00
version = "1.59.0";
src = fetchurl {
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=";
};
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 ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ lovesegfault stepbrobd ];
2023-06-30 17:14:08 +00:00
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
};
2023-06-30 17:14:08 +00:00
})