Merge pull request #223495 from StepBroBD/raycast

This commit is contained in:
Bernardo Meurer 2023-03-30 04:08:38 -07:00 committed by GitHub
commit 515452c223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, stdenvNoCC
, fetchurl
, undmg
}:
stdenvNoCC.mkDerivation rec {
pname = "raycast";
version = "1.49.0";
src = fetchurl {
# https://github.com/NixOS/nixpkgs/pull/223495
# official download API: https://api.raycast.app/v2/download
# this returns an AWS CloudFront signed URL with expiration timestamp and signature
# the returned URL will always be the latest Raycast which might result in an impure derivation
# the package maintainer created a repo (https://github.com/stepbrobd/raycast-overlay)
# to host GitHub Actions to periodically check for updates
# and re-release the `.dmg` file to Internet Archive (https://archive.org/details/raycast)
url = "https://archive.org/download/raycast/raycast-${version}.dmg";
sha256 = "sha256-6j5PyzJ7g3p+5gE2CQHlZrLj5b3rLdpodl+By7xxcjo=";
};
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/";
license = licenses.unfree;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ lovesegfault stepbrobd ];
platforms = platforms.darwin;
};
}

View File

@ -36126,6 +36126,8 @@ with pkgs;
raylib-games = callPackage ../games/raylib-games { };
raycast = callPackage ../os-specific/darwin/raycast { };
redeclipse = callPackage ../games/redeclipse { };
rftg = callPackage ../games/rftg { };