-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodePackages.elm-test: No such file or directory #45280
Comments
https://github.com/mdevlamynck/nixpkgs/tree/elm-test Remaining problems:
|
Try using https://github.com/adisbladis/pnpm2nix for nodejs |
happy to get rid of rainbow-0.30.0.2. Would totally appreciate a PR ❤️ |
I can try to make a PR but I don't know much about haskell or its ecosystem, what would you replace rainbow with? |
@mdevlamynck I would just remove it completely. It's not really necessary. I might get to it next week, but happy to help you if you have questions. I'm @stoeffel on http://elmlang.slack.com. |
elmi-to-json now builds! @domenkozar Thanks for your suggestion! I managed to get node-elm-runner building with pnpm2nix. Do you have an example using it within nixpkgs? (nixos noob here). The issue of patching the path to elmi-to-json remains though. Also I think I might need to also patch the path to elm in node-elm-compiler. Anyway, we're progressing! |
Any update on this? As it stands, a fairly basic Elm library (its test runner) cannot be used in Nixos. I wasn't able to make it work on OSX either, but it seems that the problem is being pushed down to OSes to fix it. I wonder if anyone have made it run anywhere? Result of > [email protected] install /nix/store/f37rg7c6zq4zdds87mcahpv7pfz0w88x-node-elm-test-0.18.12/lib/node_modules/elm-test
> node install.js
Error communicating with URL https://dl.bintray.com/elmlang/elm-test/0.18.12/linux-x64.tar.gz Error: getaddrinfo ENOTFOUND dl.bintray.com dl.bintray.com:443
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /build/.npm/_logs/2019-03-17T04_30_07_655Z-debug.log
builder for '/nix/store/kchksb44p66q56myw0zr0f3sijn55hwa-node-elm-test-0.18.12.drv' failed with exit code 1
error: build of '/nix/store/kchksb44p66q56myw0zr0f3sijn55hwa-node-elm-test-0.18.12.drv' failed |
@svanderburg do you have an idea why
|
This is what I do to fix it for now https://github.com/turboMaCk/nix-elm-tools/blob/master/patch-bin-wrap.nix basically, I mock you can use my thing https://github.com/turboMaCk/nix-elm-tools just note that at this point elmi-to-json itself is downloaded as a binary (darwin or linux). |
This has been fixed by #63477 |
just a note that |
Issue description
The elm-test package in nodePackages
Steps to reproduce
Via nixpkgs:
Similar results follow from npm install.
Technical details
The elm-interface-to-json binary installed via npm does not work with NixOS.
After installing via
npm install
, similar issues arise. The issue was fixed for me by deleting the elm-interface-to-json binary in node_modules/elm-test/bin, and instead linking the copy from the nix store (from elmPackages).Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
Proposed fix
Move elm-test into elmPackages, build it against existing elm-interface-to-json.
The text was updated successfully, but these errors were encountered: