summary refs log tree commit diff
path: root/pkgs/development/web
diff options
context:
space:
mode:
authorJoe Gomain Hoyes <gomain@gmail.com>2019-09-29 10:52:17 +0700
committerJoe Gomain Hoyes <gomain@gmail.com>2019-09-29 10:55:42 +0700
commit576515b30d03504241bf767fc3a6b280709a1ee5 (patch)
tree8c58e160a81eab8160ee096b6f11468c53021794 /pkgs/development/web
parent1eea42f89adcecff53f83b52fd73940abb5b3fb2 (diff)
downloadnixpkgs-576515b30d03504241bf767fc3a6b280709a1ee5.tar
nixpkgs-576515b30d03504241bf767fc3a6b280709a1ee5.tar.gz
nixpkgs-576515b30d03504241bf767fc3a6b280709a1ee5.tar.bz2
nixpkgs-576515b30d03504241bf767fc3a6b280709a1ee5.tar.lz
nixpkgs-576515b30d03504241bf767fc3a6b280709a1ee5.tar.xz
nixpkgs-576515b30d03504241bf767fc3a6b280709a1ee5.tar.zst
nixpkgs-576515b30d03504241bf767fc3a6b280709a1ee5.zip
Cypress 3.4.1: Fix files used for verification.
Diffstat (limited to 'pkgs/development/web')
-rw-r--r--pkgs/development/web/cypress/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/web/cypress/default.nix b/pkgs/development/web/cypress/default.nix
index b0ede63fb6c..c496dcbe33d 100644
--- a/pkgs/development/web/cypress/default.nix
+++ b/pkgs/development/web/cypress/default.nix
@@ -26,7 +26,11 @@ stdenv.mkDerivation rec{
     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.
-    echo '{"verified": true}' > $out/opt/cypress/binary_state.json
+    # Cypress now verifies version by reading bin/resources/app/package.json
+    mkdir -p $out/bin/resources/app
+    echo '{"version":"3.4.1"}' > $out/bin/resources/app/package.json
+    # Cypress now looks for binary_state.json in bin
+    echo '{"verified": true}' > $out/bin/binary_state.json
     ln -s $out/opt/cypress/Cypress $out/bin/Cypress
   '';