| 26 Nov 2025 |
Rene | Hello. Can anyone point me to an example of a flake to build a NodeJS/Angular project? I found some tutorials about node2nix, but it keeps failing when trying to build the canvas Node package. It's using an older version of node-gyp that doesn't like python-3.13. The recommended solution of also installing Python's setuptools does not solve the issue (by adding it to buildInputs or nativeBuildInputs). | 15:24:52 |
Rene | I managed to get the newer version of node-gyp, now it can't find pkg-config:
npm error /nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh: line 1: pkg-config: command not found
npm error gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
I have pkg-config in the buildInputs, and have even overridden the Node package's buildInputs to add it, it still can't find it.
| 17:20:22 |
flyx | if I fetch a .zip file as flake input with flake = false;, it gets unzipped automatically. how can I set the filename encoding when unzipping? | 21:50:57 |
| 28 Nov 2025 |
Rene | After further research, this error is not because pkg-config is missing, it's because pixman-1 can't be found. The PKG_CONFIG_PATH is not being set. Is there an expression to add something in buildInputs to PKG_CONFIG_PATH? | 13:04:33 |
| anniecrudeness joined the room. | 18:06:59 |
| antono changed their profile picture. | 18:43:16 |
dramforever | put pixman in buildInputs and pkg-config in nativeBuildInputs, i think | 23:54:53 |
dramforever | node-gyp has strictDeps = true | 23:55:20 |
| 29 Nov 2025 |
Rene | i'll give this a try | 02:11:58 |
Rene | Didn't work. I tried putting this for the overall package derivation, and inside the Node module that is asking for pixman, same result. It seems the PKG_CONFIG_PATH is not being set. | 13:26:47 |
dramforever | unfortunately i don't really know how node stuff works... | 13:30:43 |
Rene | Hmm... I just saw that the node2nix tool I'm trying to use hasn't been updated in 3 years. I'm just going to assume it's broken | 13:39:07 |
dramforever | a fairly basic
mkShell {
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pixman ];
}
does make pixman show up in PKG_CONFIG_PATH
| 13:44:03 |
Rene | That's why I'm thinking the issue is in the auto-generated derivations node2nix makes for each dependency | 13:46:01 |
dramforever | so i'm also not sure where it could go wrong for node | 13:46:04 |
Rene | I was hoping to nixify this, I think I'll just use the flake to set the node version, and then do the rest the old-fashioned way | 13:49:47 |
Rene | I do think node2nix may be buggy, I noticed that every time I tried to build, it creates a new hash in /nix/store with a copy of all the deps. Filled up the storage fast with all my attempts | 13:51:23 |
teto | Rene: node2nix has been dead for a long time, use buildNpmPackage from nixpkgs | 16:25:07 |
teto | it works much better. there is a nix nodejs matrix room with reactive people | 16:25:32 |
| 30 Nov 2025 |
| o_________o joined the room. | 01:08:56 |
Trent Baldwin | Are there any projects that let you load a project.toml kind of like buildnpmpackage does for npm.lock files so you can manage dependencies in one place? | 17:58:49 |
| Masen Joumaah joined the room. | 20:47:04 |
| 1 Dec 2025 |
| Brisingr changed their display name from Brisingr05 to Brisingr. | 18:40:06 |
| piredman joined the room. | 23:23:28 |
| 2 Dec 2025 |
| @fuckill:matrix.org joined the room. | 11:50:55 |
| @fuckill:matrix.org removed their display name Fuckill. | 12:46:11 |
| @fuckill:matrix.org left the room. | 12:46:18 |
| LillianOfTheValley joined the room. | 19:00:36 |
| 3 Dec 2025 |
| aaronjan joined the room. | 00:14:00 |
| 0xmagus joined the room. | 00:55:38 |