From d2145a1ad8e92b33f02f21a4290a133129e150f3 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 29 Dec 2024 09:49:35 +0100 Subject: [PATCH 1/2] immich: use Node.js 20 Signed-off-by: Sefa Eyeoglu Co-authored-by: Simon Gardling --- pkgs/by-name/im/immich/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/im/immich/package.nix b/pkgs/by-name/im/immich/package.nix index 209cb27666126..b379400e8157a 100644 --- a/pkgs/by-name/im/immich/package.nix +++ b/pkgs/by-name/im/immich/package.nix @@ -5,7 +5,7 @@ fetchFromGitHub, fetchpatch2, python3, - nodejs, + nodejs_20, node-gyp, runCommand, nixosTests, @@ -27,6 +27,7 @@ vips, }: let + nodejs = nodejs_20; buildNpmPackage' = buildNpmPackage.override { inherit nodejs; }; sources = lib.importJSON ./sources.json; inherit (sources) version; From 7bf88bebfc48455d221ba618f2693cec889de38c Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 29 Dec 2024 09:57:28 +0100 Subject: [PATCH 2/2] immich: rely on native nodejs Signed-off-by: Sefa Eyeoglu --- pkgs/by-name/im/immich/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/im/immich/package.nix b/pkgs/by-name/im/immich/package.nix index b379400e8157a..a2c1f6a55864a 100644 --- a/pkgs/by-name/im/immich/package.nix +++ b/pkgs/by-name/im/immich/package.nix @@ -187,7 +187,7 @@ buildNpmPackage' { mkdir node_modules ln -s ${node-addon-api} node_modules/node-addon-api - ${lib.getExe nodejs} install/check + node install/check rm -r node_modules