node-test-runner: doesn't run on nixos
elm-test appears to rely on native binaries which don’t work on nixos (and potentially other platforms).
$ mkdir tmp
$ cd tmp
$ npm install elm-test
$ ./node_modules/.bin/elm-test init
$ ./node_modules/.bin/elm-test
Success! Compiled 54 modules.
Successfully generated /dev/null
Unhandled exception while running the tests: { Error: spawn /home/avh4/workspace/Apps/tmp/node_modules/elm-test/bin/elm-interface-to-json ENOENT
at _errnoException (util.js:1024:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn /home/avh4/workspace/Apps/tmp/node_modules/elm-test/bin/elm-interface-to-json',
path: '/home/avh4/workspace/Apps/tmp/node_modules/elm-test/bin/elm-interface-to-json',
spawnargs: [ '--path', '/home/avh4/workspace/Apps/tmp/tests' ] }
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 22
Sorry I haven’t posted this earlier here (I couldn’t find the issue).
Please use this instead of NPM install https://github.com/turboMaCk/nix-elm-tools
I’ll be working together with this and other upstreams including nixpkgs to find the best way for all the projects.
Wouldn’t it make more sense to continue this on the nixpkgs issue https://github.com/NixOS/nixpkgs/issues/45280? I’ll post there my progress on creating a package there.
There is also https://github.com/NixOS/nixpkgs/issues/45280. I’m not good enough with nix yet to try to fix this, @turboMaCk @manveru do you think you can help with this?
It’s merged into nixpkgs now, so should be available in nixpkgs-unstable shortly and then you can simply use
elmPackages.elm-interface-to-jsonin yourbuildInputs🎆