diff options
Diffstat (limited to 'pkgs/development/web')
-rw-r--r-- | pkgs/development/web/cypress/default.nix | 10 | ||||
-rw-r--r-- | pkgs/development/web/nodejs/disable-libatomic-darwin-12_x.patch (renamed from pkgs/development/web/nodejs/disable-libatomic-darwin.patch) | 0 | ||||
-rw-r--r-- | pkgs/development/web/nodejs/disable-libatomic-darwin-13_x.patch | 11 | ||||
-rw-r--r-- | pkgs/development/web/nodejs/v12.nix | 2 | ||||
-rw-r--r-- | pkgs/development/web/nodejs/v13.nix | 12 |
5 files changed, 31 insertions, 4 deletions
diff --git a/pkgs/development/web/cypress/default.nix b/pkgs/development/web/cypress/default.nix index b0ede63fb6c1..f88a6ceaeb34 100644 --- a/pkgs/development/web/cypress/default.nix +++ b/pkgs/development/web/cypress/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec{ pname = "cypress"; - version = "3.4.1"; + version = "3.5.0"; src = fetchzip { url = "https://cdn.cypress.io/desktop/${version}/linux-x64/cypress.zip"; - sha256 = "1gyl5c86gr5sv6z5rkg0afdxqrmsxmyrimm1p5q6jlrlyzki1bfs"; + sha256 = "1w1nqa0j3bzjr000d4jlr34d1asdc1fv81pq831s3wl55hyqbij6"; }; # don't remove runtime deps @@ -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 + printf '{"version":"%b"}' $version > $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 ''; diff --git a/pkgs/development/web/nodejs/disable-libatomic-darwin.patch b/pkgs/development/web/nodejs/disable-libatomic-darwin-12_x.patch index d6ac38138b88..d6ac38138b88 100644 --- a/pkgs/development/web/nodejs/disable-libatomic-darwin.patch +++ b/pkgs/development/web/nodejs/disable-libatomic-darwin-12_x.patch diff --git a/pkgs/development/web/nodejs/disable-libatomic-darwin-13_x.patch b/pkgs/development/web/nodejs/disable-libatomic-darwin-13_x.patch new file mode 100644 index 000000000000..b3b2c8b0fb65 --- /dev/null +++ b/pkgs/development/web/nodejs/disable-libatomic-darwin-13_x.patch @@ -0,0 +1,11 @@ +--- a/node.gyp ++++ b/node.gyp +@@ -289,7 +289,7 @@ + '-Wl,-bnoerrmsg', + ], + }], +- ['OS in ("linux", "mac") and llvm_version != "0.0"', { ++ ['OS=="linux" and llvm_version!=0', { + 'libraries': ['-latomic'], + }], + ], diff --git a/pkgs/development/web/nodejs/v12.nix b/pkgs/development/web/nodejs/v12.nix index 37a69eb4ddd7..bed3127ee4bf 100644 --- a/pkgs/development/web/nodejs/v12.nix +++ b/pkgs/development/web/nodejs/v12.nix @@ -8,5 +8,5 @@ in version = "12.13.0"; sha256 = "1xmy73q3qjmy68glqxmfrk6baqk655py0cic22h1h0v7rx0iaax8"; - patches = stdenv.lib.optionals stdenv.isDarwin [ ./disable-libatomic-darwin.patch ]; + patches = stdenv.lib.optionals stdenv.isDarwin [ ./disable-libatomic-darwin-12_x.patch ]; } diff --git a/pkgs/development/web/nodejs/v13.nix b/pkgs/development/web/nodejs/v13.nix new file mode 100644 index 000000000000..37d42e0ee771 --- /dev/null +++ b/pkgs/development/web/nodejs/v13.nix @@ -0,0 +1,12 @@ +{ stdenv, callPackage, openssl, icu, enableNpm ? true }: + +let + buildNodejs = callPackage ./nodejs.nix { inherit openssl icu; }; +in + buildNodejs { + inherit enableNpm; + version = "13.0.1"; + sha256 = "1n9w1kvdzdg2j0a41wdkqcl893209lc018sd49xpy1cnr169h6vr"; + + patches = stdenv.lib.optionals stdenv.isDarwin [ ./disable-libatomic-darwin-13_x.patch ]; + } |