Skip to content

Commit

Permalink
add nodejs 18.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-martin committed May 30, 2024
1 parent 1477e47 commit 60dd496
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
17 changes: 17 additions & 0 deletions main/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions main/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
nixpkgs-master-2024-01-27.url = "github:nixos/nixpkgs/160b762eda6d139ac10ae081f8f78d640dd523eb";
nixpkgs-unstable-2023-10-21.url = "github:nixos/nixpkgs/038b2922be3fc096e1d456f93f7d0f4090628729";
nixpkgs-unstable-2024-02-20.url = "github:nixos/nixpkgs/b98a4e1746acceb92c509bc496ef3d0e5ad8d4aa";
nixpkgs-unstable-2024-04-03.url = "github:nixos/nixpkgs/62e885a4013446453b10fd7780eba4337f6f42e0";
nixpkgs-unstable-2024-05-30.url = "github:nixos/nixpkgs/aa61b27554a5fc282758bf0324781e3464ef2cde";
flake-utils.url = "github:numtide/flake-utils";
nix-github-actions.url = "github:nix-community/nix-github-actions";
Expand Down
1 change: 1 addition & 0 deletions main/nodejs/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ in
nodejs-16-20-2 = nodeCheck { packageName = "nodejs-16-20-2"; node = "16.20.2"; yarn = "1.22.19"; pnpm = "8.5.1"; };
nodejs-18-17-1 = nodeCheck { packageName = "nodejs-18-17-1"; node = "18.17.1"; yarn = "1.22.19"; pnpm = "8.6.12"; };
nodejs-18-18-0 = nodeCheck { packageName = "nodejs-18-18-0"; node = "18.18.0"; yarn = "1.22.19"; pnpm = "8.8.0"; };
nodejs-18-19-1 = nodeCheck { packageName = "nodejs-18-19-1"; node = "18.19.1"; yarn = "1.22.22"; pnpm = "8.15.5"; };
nodejs-18-20-2 = nodeCheck { packageName = "nodejs-18-20-2"; node = "18.20.2"; yarn = "1.22.22"; pnpm = "8.15.5"; };
nodejs-20-11-0 = nodeCheck { packageName = "nodejs-20-11-0"; node = "20.11.0"; yarn = "1.22.19"; pnpm = "8.14.0"; };
nodejs-20-11-1 = nodeCheck { packageName = "nodejs-20-11-1"; node = "20.11.1"; yarn = "1.22.19"; pnpm = "8.15.1"; };
Expand Down
19 changes: 19 additions & 0 deletions main/nodejs/v18.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rec {

nodejs-18-17-x = nodejs-18-17-1;
nodejs-18-18-x = nodejs-18-18-0;
nodejs-18-19-x = nodejs-18-19-1;
nodejs-18-20-x = nodejs-18-20-2;

nodejs-18-17-1 = (
Expand Down Expand Up @@ -45,6 +46,24 @@ rec {
}
);

nodejs-18-19-1 = (
let
nixpkgs = import inputs.nixpkgs-unstable-2024-04-03 { inherit system; config = { }; };
nodejs = nixpkgs.nodejs_18;
yarn = nixpkgs.yarn.override { inherit nodejs; };
pnpm = nixpkgs.nodePackages.pnpm.override { inherit nodejs; };
pnpm-bin = runCommand "pnpm" { } ''
mkdir -p "$out/bin"
ln -s "${pnpm}/lib/node_modules/.bin/pnpm" "$out/bin/pnpm"
ln -s "${pnpm}/lib/node_modules/.bin/pnpx" "$out/bin/pnpx"
'';
in
symlinkJoin {
name = "nodejs";
paths = [ nodejs pnpm pnpm-bin yarn ];
}
);

nodejs-18-20-2 = (
let
nixpkgs = import inputs.nixpkgs-unstable-2024-05-30 { inherit system; config = { }; };
Expand Down

0 comments on commit 60dd496

Please sign in to comment.