Open MrFoxPro opened 1 year ago
I'm having exactly the same issue. And I've been doing exactly the same steps haha. I wonder if there's some setting we are missing, I wasn't able to find much docs.
I'm on a Mac bookpro
I kind of solve it by removing the projects chunk. I get another error now.
Try nix flake show
(it should fail, almost lists the packages)
Remove:
- projects.web_node = {name, ...}: {
- inherit name;
- # relPath = "";
- subsystem = "nodejs";
- translator = "package-json";
- builder = "strict-builder";
- };
And let nix2dream detect the nodejs automatically.
Run nix flake show
again and observe, you should see the package web_node
.
Now when trying to build: nix build .#web_node
(in your case) I get some impure error that I cannot fix with nix build .#resolveImpure
Hope it helps
I think it's related to relPath
, because some people report that it's working when setup with project.toml
I'm trying to build node package using
flake-parts
anddream2nix
:after running
nix run .#resolveImpure
,nix build .#web_node
andnix flake show
produces error:Probably because of wrong path resolving?
I made simple example of unuccessful attempt to build app with dream2nix (repro): https://github.com/MrFoxPro/attempt-to-build-js-with-dream2nix