From f797c11c6a3225ceb5d36485a331a47ad34fda42 Mon Sep 17 00:00:00 2001 From: uku Date: Mon, 2 Mar 2026 10:59:59 +0100 Subject: [PATCH] zipline: set NODE_PATH for sharp When building sharp from source, it tries to `require("node-gyp")`, which will not be found since it's not in zipline's deps. We therefore set NODE_PATH with nixpkgs's node-gyp, so that it can be imported by the sharp build script. See: https://github.com/lovell/sharp/blame/7b4c4762432b14c62676e860c8034b5cd326f464/install/build.js#L24 --- pkgs/by-name/zi/zipline/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/zi/zipline/package.nix b/pkgs/by-name/zi/zipline/package.nix index c0a8197983e9..d8a51297cddf 100644 --- a/pkgs/by-name/zi/zipline/package.nix +++ b/pkgs/by-name/zi/zipline/package.nix @@ -75,6 +75,7 @@ stdenv.mkDerivation (finalAttrs: { env = environment // { DATABASE_URL = "dummy"; + NODE_PATH = "${node-gyp}/lib/node_modules"; }; buildPhase = ''