Skip to content

Commit

Permalink
dependency-track: pin nodejs_20 for frontend
Browse files Browse the repository at this point in the history
Using node 22 results in this error when building:

> npm error node-pre-gyp http GET https://github.com/marudor/libxmljs2/releases/download/v0.33.0/node-v127-linux-x64-glibc.tar.gz
> npm error node-pre-gyp ERR! install request to https://github.com/marudor/libxmljs2/releases/download/v0.33.0/node-v127-linux-x64-glibc.tar.gz failed, reason: getaddrinfo EAI_AGAIN github.com

(cherry picked from commit 5967f89)
  • Loading branch information
corngood authored and github-actions[bot] committed Jan 4, 2025
1 parent 7a3b83a commit d5317ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/by-name/de/dependency-track/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildNpmPackage,
fetchFromGitHub,
nodejs_20,
jre_headless,
protobuf,
cyclonedx-cli,
Expand All @@ -17,6 +18,9 @@ let
pname = "dependency-track-frontend";
inherit version;

# TODO: pinned due to build error on node 22
nodejs = nodejs_20;

src = fetchFromGitHub {
owner = "DependencyTrack";
repo = "frontend";
Expand Down

0 comments on commit d5317ca

Please sign in to comment.