Merge pull request #240762 from StepBroBD/raycast

raycast: 1.53.4 -> 1.54.1
This commit is contained in:
Pol Dellaiera 2023-07-01 22:56:23 +02:00 committed by GitHub
commit 53718fb655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -4,14 +4,14 @@
, undmg
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "raycast";
version = "1.53.4";
version = "1.54.1";
src = fetchurl {
name = "Raycast.dmg";
url = "https://releases.raycast.com/releases/${version}/download?build=universal";
sha256 = "sha256-bkNlGHCpYnHlKdzDyKGPF5jnoq2cSe1sdg9W2DwVrWc=";
url = "https://releases.raycast.com/releases/${finalAttrs.version}/download?build=universal";
hash = "sha256-lnP0wSTC7oCji24RSk1fY+QSwoYioMPtvOb4Ey1MzVY=";
};
dontPatch = true;
@ -35,9 +35,9 @@ stdenvNoCC.mkDerivation rec {
meta = with lib; {
description = "Control your tools with a few keystrokes";
homepage = "https://raycast.app/";
license = licenses.unfree;
license = with licenses; [ unfree ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ lovesegfault stepbrobd ];
platforms = platforms.darwin;
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
};
}
})

View File

@ -3,7 +3,7 @@
set -eo pipefail
new_version=$(curl --silent https://releases.raycast.com/releases/latest | jq -r '.version')
new_version=$(curl --silent https://releases.raycast.com/releases/latest?build=universal | jq -r '.version')
old_version=$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)
if [[ $new_version == $old_version ]]; then
@ -16,5 +16,5 @@ else
fi
hash=$(nix --extra-experimental-features nix-command store prefetch-file --json --hash-type sha256 "https://releases.raycast.com/releases/$new_version/download?build=universal" | jq -r '.hash')
sed -Ei.bak '/ *sha256 = /{N;N; s@("sha256-)[^;"]+@"'"$hash"'@}' ./default.nix
sed -Ei.bak '/ *hash = /{N;N; s@("sha256-)[^;"]+@"'"$hash"'@}' ./default.nix
rm ./default.nix.bak