diff options
author | Robert Schütz <nix@dotlambda.de> | 2023-08-18 17:34:58 -0700 |
---|---|---|
committer | Robert Schütz <nix@dotlambda.de> | 2023-08-18 17:34:58 -0700 |
commit | 5a5401dc95294e3c363919952df1da79d647f628 (patch) | |
tree | cf419323c446c3b7f2dbb1ded81eb28236b4928c /pkgs/development/compilers/elm | |
parent | 850d2b1cb17564b5ea4e52c563d083d747aeb66e (diff) |
elmPackages.elm-test: use buildNpmPackage
Diffstat (limited to 'pkgs/development/compilers/elm')
-rw-r--r-- | pkgs/development/compilers/elm/default.nix | 9 | ||||
-rw-r--r-- | pkgs/development/compilers/elm/packages/elm-test.nix | 32 |
2 files changed, 33 insertions, 8 deletions
diff --git a/pkgs/development/compilers/elm/default.nix b/pkgs/development/compilers/elm/default.nix index 55b55b931aab..b96bd24deddb 100644 --- a/pkgs/development/compilers/elm/default.nix +++ b/pkgs/development/compilers/elm/default.nix @@ -142,14 +142,7 @@ in lib.makeScope pkgs.newScope (self: with self; { elm-test-rs = callPackage ./packages/elm-test-rs.nix { }; - elm-test = nodePkgs.elm-test // { - meta = with lib; nodePkgs.elm-test.meta // { - description = "Runs elm-test suites from Node.js"; - homepage = "https://github.com/rtfeldman/node-test-runner"; - license = licenses.bsd3; - maintainers = [ maintainers.turbomack ]; - }; - }; + elm-test = callPackage ./packages/elm-test.nix { }; } // (hs810Pkgs self).elmPkgs // (hs92Pkgs self).elmPkgs // (with elmLib; with (hs810Pkgs self).elmPkgs; { elm-verify-examples = let patched = patchBinwrap [elmi-to-json] nodePkgs.elm-verify-examples // { diff --git a/pkgs/development/compilers/elm/packages/elm-test.nix b/pkgs/development/compilers/elm/packages/elm-test.nix new file mode 100644 index 000000000000..fc943a80a3fa --- /dev/null +++ b/pkgs/development/compilers/elm/packages/elm-test.nix @@ -0,0 +1,32 @@ +{ lib +, buildNpmPackage +, fetchFromGitHub +}: + +buildNpmPackage rec { + pname = "elm-test"; + version = "0.19.1-revision12"; + + src = fetchFromGitHub { + owner = "rtfeldman"; + repo = "node-test-runner"; + rev = version; + hash = "sha256-cnxAOFcPTJjtHi4VYCO9oltb5iOeDnLvRgnuJnNzjsY="; + }; + + npmDepsHash = "sha256-QljHVrmF6uBem9sW67CYduCro3BqF34EPGn1BtKqom0="; + + postPatch = '' + sed -i '/elm-tooling install/d' package.json + ''; + + dontNpmBuild = true; + + meta = { + changelog = "https://github.com/rtfeldman/node-test-runner/blob/${src.rev}/CHANGELOG.md"; + description = "Runs elm-test suites from Node.js"; + homepage = "https://github.com/rtfeldman/node-test-runner"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ turbomack ]; + }; +} |