1{
2 lib,
3 buildNpmPackage,
4 fetchFromGitHub,
5}:
6
7buildNpmPackage rec {
8 pname = "elm-test";
9 version = "0.19.1-revision16";
10
11 src = fetchFromGitHub {
12 owner = "rtfeldman";
13 repo = "node-test-runner";
14 rev = version;
15 hash = "sha256-5XV5AxLJ3YdtlB3Px5tmFzP8H2BP8lkq9M01iUbbmPU=";
16 };
17
18 npmDepsHash = "sha256-+e21gMBiRQo1uUIvlIs5fzkyWW6+zWEi2HGdDsXxgaA=";
19
20 postPatch = ''
21 sed -i '/elm-tooling install/d' package.json
22 '';
23
24 dontNpmBuild = true;
25
26 postInstall = ''
27 # clean up broken symlinks to build tool binaries
28 find $out/lib/node_modules/elm-test/node_modules/.bin \
29 -xtype l \
30 -delete
31 '';
32
33 meta = {
34 changelog = "https://github.com/rtfeldman/node-test-runner/blob/${src.rev}/CHANGELOG.md";
35 description = "Runs elm-test suites from Node.js";
36 mainProgram = "elm-test";
37 homepage = "https://github.com/rtfeldman/node-test-runner";
38 license = lib.licenses.bsd3;
39 maintainers = with lib.maintainers; [ turbomack ];
40 };
41}