1{
2 lib,
3 buildNpmPackage,
4 fetchFromGitHub,
5 testers,
6 elm-review,
7}:
8
9buildNpmPackage rec {
10 pname = "elm-review";
11 version = "2.13.4";
12
13 src = fetchFromGitHub {
14 owner = "jfmengels";
15 repo = "node-elm-review";
16 rev = "v${version}";
17 hash = "sha256-rhNLIShZERxrzdTdrPcthTQ+gHUikgR0jchBfcBDGTo=";
18 };
19
20 npmDepsHash = "sha256-mI94fYNKZ9Jx1Iyo/VjZqaXQ64tZA2S8mtn5l6TtCSc=";
21
22 postPatch = ''
23 sed -i "s/elm-tooling install/echo 'skipping elm-tooling install'/g" package.json
24 '';
25
26 dontNpmBuild = true;
27
28 passthru.tests.version = testers.testVersion {
29 version = "${version}";
30 package = elm-review;
31 command = "elm-review --version";
32 };
33
34 meta = {
35 changelog = "https://github.com/jfmengels/node-elm-review/blob/v${src.rev}/CHANGELOG.md";
36 description = "Analyzes Elm projects, to help find mistakes before your users find them";
37 mainProgram = "elm-review";
38 homepage = "https://github.com/jfmengels/node-elm-review";
39 license = lib.licenses.bsd3;
40 maintainers = with lib.maintainers; [
41 turbomack
42 zupo
43 ];
44 };
45}