feat: update to node 22

This commit is contained in:
2024-06-03 14:11:07 +02:00
parent 91e0f2a255
commit 1628849d1b
16 changed files with 101 additions and 792 deletions

View File

@@ -19,7 +19,7 @@
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: rec {
(final: prev: {
fontMin = prev.python311.withPackages (
ps:
with ps;
@@ -37,10 +37,10 @@
platformVersions = [ "34" ];
};
cypress = prev.cypress.overrideAttrs (cyPrev: rec {
version = "13.2.0";
version = "13.10.0";
src = prev.fetchzip {
url = "https://cdn.cypress.io/desktop/${version}/linux-x64/cypress.zip";
hash = "sha256-9o0nprGcJhudS1LNm+T7Vf0Dwd1RBauYKI+w1FBQ3ZM=";
hash = "sha256-wKNXo2lWndsQaouOiul0rsOWah+RRQ6fljzdeC8/KW4=";
};
});
nodejs = prev.nodejs_22;
@@ -53,7 +53,6 @@
};
androidFhs = pkgs.buildFHSUserEnv {
name = "android-env";
targetPkgs = pkgs: with pkgs; [ ];
runScript = "bash";
profile = ''
export ALLOW_NINJA_ENV=true
@@ -67,7 +66,7 @@
nativeBuildInputs = [ androidFhs ];
buildInputs = with pkgs; [
nodejs
corepack
nodePackages.pnpm
# tools
curl
jq
@@ -82,6 +81,8 @@
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${ANDROID_SDK_ROOT}/build-tools/${aapt2buildToolsVersion}/aapt2";
CYPRESS_INSTALL_BINARY = "0";
CYPRESS_RUN_BINARY = "${pkgs.cypress}/bin/Cypress";
# https://github.com/nodejs/node/issues/48444#issuecomment-1591882694
UV_USE_IO_URING = "0";
};
}
);