Skip to content

Commit

Permalink
Update nodejs package attr to fit NixOS/nixpkgs#199835
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Nov 27, 2022
1 parent a6041f6 commit e0019c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions bin/node2nix.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ parser.on('nodejs-8', function(arg, value) {

parser.on('nodejs-10', function(arg, value) {
flatten = true;
nodePackage = "nodejs-10_x";
nodePackage = "nodejs_10";
bypassCache = true;
includePeerDependencies = false;
});

parser.on('nodejs-12', function(arg, value) {
flatten = true;
nodePackage = "nodejs-12_x";
nodePackage = "nodejs_12";
bypassCache = true;
includePeerDependencies = false;
});
Expand All @@ -159,14 +159,14 @@ parser.on('nodejs-13', function(arg, value) {

parser.on('nodejs-14', function(arg, value) {
flatten = true;
nodePackage = "nodejs-14_x";
nodePackage = "nodejs_14";
bypassCache = true;
includePeerDependencies = false;
});

parser.on('nodejs-16', function(arg, value) {
flatten = true;
nodePackage = "nodejs-16_x";
nodePackage = "nodejs_16";
bypassCache = true;
includePeerDependencies = true;
});
Expand All @@ -180,7 +180,7 @@ parser.on('nodejs-17', function(arg, value) {

parser.on('nodejs-18', function(arg, value) {
flatten = true;
nodePackage = "nodejs-18_x";
nodePackage = "nodejs_18";
bypassCache = true;
includePeerDependencies = true;
});
Expand Down
2 changes: 1 addition & 1 deletion tests/default-v14.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}:
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_14"}:

let
nodeEnv = import ../nix/node-env.nix {
Expand Down
2 changes: 1 addition & 1 deletion tests/default-v16.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-16_x"}:
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_16"}:

let
nodeEnv = import ../nix/node-env.nix {
Expand Down

0 comments on commit e0019c4

Please sign in to comment.