mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 10:44:18 +00:00
raycast: 1.53.4 -> 1.54.1
This commit is contained in:
parent
2b73d5c230
commit
febd3fa64f
@ -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" ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user