diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-03-30 13:37:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 13:37:15 +0200 |
commit | d5befe0223468c9a17ffce330a42af7e373cfdd2 (patch) | |
tree | 8673772bcac21bb807b9da74440af485c7691fb1 /pkgs/development/web | |
parent | 88b86dc02bb3545ef43181c5b407a9e4134d058e (diff) | |
parent | 716892066a140e8ebcfd4041e89900e8d0d91763 (diff) | |
download | nixpkgs-d5befe0223468c9a17ffce330a42af7e373cfdd2.tar nixpkgs-d5befe0223468c9a17ffce330a42af7e373cfdd2.tar.gz nixpkgs-d5befe0223468c9a17ffce330a42af7e373cfdd2.tar.bz2 nixpkgs-d5befe0223468c9a17ffce330a42af7e373cfdd2.tar.lz nixpkgs-d5befe0223468c9a17ffce330a42af7e373cfdd2.tar.xz nixpkgs-d5befe0223468c9a17ffce330a42af7e373cfdd2.tar.zst nixpkgs-d5befe0223468c9a17ffce330a42af7e373cfdd2.zip |
Merge pull request #223607 from jtrees/cypress-aarch64
cypress: add aarch64-linux support
Diffstat (limited to 'pkgs/development/web')
-rw-r--r-- | pkgs/development/web/cypress/default.nix | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/pkgs/development/web/cypress/default.nix b/pkgs/development/web/cypress/default.nix index 04284e9c082..9983b206ef9 100644 --- a/pkgs/development/web/cypress/default.nix +++ b/pkgs/development/web/cypress/default.nix @@ -14,13 +14,27 @@ , xorg }: -stdenv.mkDerivation rec { +let + availableBinaries = { + x86_64-linux = { + platform = "linux-x64"; + checksum = "sha256-26mkizwkF0qPX2+0rkjep28ZuNlLGPljCvVO73t34Lk="; + }; + aarch64-linux = { + platform = "linux-arm64"; + checksum = "sha256-gcf/MJ5aNUPoH6qz0n9vjviTec1rcxB0UzF+++6bUTs="; + }; + }; + inherit (stdenv.hostPlatform) system; + binary = availableBinaries.${system} or (throw "cypress: No binaries available for system ${system}"); + inherit (binary) platform checksum; +in stdenv.mkDerivation rec { pname = "cypress"; version = "10.10.0"; src = fetchzip { - url = "https://cdn.cypress.io/desktop/${version}/linux-x64/cypress.zip"; - sha256 = "sha256-26mkizwkF0qPX2+0rkjep28ZuNlLGPljCvVO73t34Lk="; + url = "https://cdn.cypress.io/desktop/${version}/${platform}/cypress.zip"; + sha256 = checksum; }; # don't remove runtime deps @@ -73,7 +87,7 @@ stdenv.mkDerivation rec { mainProgram = "Cypress"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.mit; - platforms = [ "x86_64-linux" ]; + platforms = lib.attrNames availableBinaries; maintainers = with maintainers; [ tweber mmahut Crafter ]; }; } |