diff options
Diffstat (limited to 'nixpkgs/pkgs/development/web/cypress/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/web/cypress/default.nix | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/web/cypress/default.nix b/nixpkgs/pkgs/development/web/cypress/default.nix index 0b61aa23086f..ff673658272e 100644 --- a/nixpkgs/pkgs/development/web/cypress/default.nix +++ b/nixpkgs/pkgs/development/web/cypress/default.nix @@ -1,25 +1,45 @@ -{ stdenv, lib, fetchzip, autoPatchelfHook, xorg, gtk2, gnome2, gtk3, nss, alsa-lib, udev, unzip, wrapGAppsHook, mesa }: +{ alsa-lib +, autoPatchelfHook +, callPackage +, fetchzip +, gnome2 +, gtk2 +, gtk3 +, lib +, mesa +, nss +, stdenv +, udev +, unzip +, wrapGAppsHook +, xorg +}: stdenv.mkDerivation rec { pname = "cypress"; - version = "7.7.0"; + version = "8.0.0"; src = fetchzip { url = "https://cdn.cypress.io/desktop/${version}/linux-x64/cypress.zip"; - sha256 = "1mr46raha5aqi8ba0cqvyil5z4vcr46hnxqqmpk3fkrr8awd2897"; + sha256 = "144mz37xhk7gkwhmf67q1h07f2biy5nnw78yb2syc7w28v48ng0z"; }; - passthru.updateScript = ./update.sh; - # don't remove runtime deps dontPatchELF = true; nativeBuildInputs = [ autoPatchelfHook wrapGAppsHook unzip ]; buildInputs = with xorg; [ - libXScrnSaver libXdamage libXtst libxshmfence + libXScrnSaver + libXdamage + libXtst + libxshmfence ] ++ [ - nss gtk2 alsa-lib gnome2.GConf gtk3 + nss + gtk2 + alsa-lib + gnome2.GConf + gtk3 mesa # for libgbm ]; @@ -41,11 +61,19 @@ stdenv.mkDerivation rec { runHook postInstall ''; + passthru = { + updateScript = ./update.sh; + + tests = { + example = callPackage ./cypress-example-kitchensink { }; + }; + }; + meta = with lib; { description = "Fast, easy and reliable testing for anything that runs in a browser"; homepage = "https://www.cypress.io"; license = licenses.mit; - platforms = ["x86_64-linux"]; + platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ tweber mmahut ]; }; } |