cypress: lowercase symbolic link (#341694)

This commit is contained in:
Artturin 2024-09-16 19:31:12 +03:00 committed by GitHub
commit 931494da4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@
, gtk2
, gtk3
, lib
, makeShellWrapper
, mesa
, nss
, stdenv
@ -39,7 +40,7 @@ in stdenv.mkDerivation rec {
# don't remove runtime deps
dontPatchELF = true;
nativeBuildInputs = [ autoPatchelfHook wrapGAppsHook3 unzip ];
nativeBuildInputs = [ autoPatchelfHook (wrapGAppsHook3.override { makeWrapper = makeShellWrapper; }) unzip makeShellWrapper];
buildInputs = with xorg; [
libXScrnSaver
@ -67,11 +68,16 @@ in stdenv.mkDerivation rec {
printf '{"version":"%b"}' $version > $out/bin/resources/app/package.json
# 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
ln -s $out/opt/cypress/Cypress $out/bin/cypress
runHook postInstall
'';
postFixup = ''
# exit with 1 after 25.05
makeWrapper $out/opt/cypress/Cypress $out/bin/Cypress \
--run 'echo "Warning: Use the lowercase cypress executable instead of the capitalized one."'
'';
passthru = {
updateScript = ./update.sh;