3
0
Fork 0
forked from mirrors/nixpkgs

cypress: 6.6.0 -> 7.0.0 (#118902)

This commit is contained in:
kolaente 2021-04-13 01:13:20 +02:00 committed by GitHub
parent 0177881cbe
commit 40175efacf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,27 +2,29 @@
stdenv.mkDerivation rec {
pname = "cypress";
version = "6.6.0";
version = "7.0.0";
src = fetchzip {
url = "https://cdn.cypress.io/desktop/${version}/linux-x64/cypress.zip";
sha256 = "13zw9gyaqna9d82mwrglab4dfx5y9faqf36d6xplq0z6vnzig1rg";
sha256 = "0ad578fqbijw8yf0c92c33inpqam1cfhbwcwinzlmc22h0d4bv5h";
};
# don't remove runtime deps
dontPatchELF = true;
nativeBuildInputs = [ autoPatchelfHook wrapGAppsHook ];
nativeBuildInputs = [ autoPatchelfHook wrapGAppsHook unzip ];
buildInputs = with xorg; [
libXScrnSaver libXdamage libXtst
libXScrnSaver libXdamage libXtst libxshmfence
] ++ [
nss gtk2 alsaLib gnome2.GConf gtk3 unzip
nss gtk2 alsaLib gnome2.GConf gtk3
];
runtimeDependencies = [ (lib.getLib udev) ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/opt/cypress
cp -vr * $out/opt/cypress/
# Let's create the file binary_state ourselves to make the npm package happy on initial verification.
@ -32,6 +34,8 @@ stdenv.mkDerivation rec {
# Cypress now looks for binary_state.json in bin
echo '{"verified": true}' > $out/binary_state.json
ln -s $out/opt/cypress/Cypress $out/bin/Cypress
runHook postInstall
'';
meta = with lib; {