forked from mirrors/nixpkgs
Merge pull request #82779 from turboMaCk/elm-coverage
elmPackages.elm-coverage: init at 0.0.3
This commit is contained in:
commit
e6b5bcd70f
|
@ -91,9 +91,29 @@ let
|
||||||
inherit nodejs pkgs;
|
inherit nodejs pkgs;
|
||||||
inherit (stdenv.hostPlatform) system;
|
inherit (stdenv.hostPlatform) system;
|
||||||
};
|
};
|
||||||
in with hsPkgs.elmPkgs; {
|
in with hsPkgs.elmPkgs; rec {
|
||||||
elm-test = patchBinwrap [elmi-to-json] nodePkgs.elm-test;
|
elm-test = patchBinwrap [elmi-to-json] nodePkgs.elm-test;
|
||||||
elm-verify-examples = patchBinwrap [elmi-to-json] nodePkgs.elm-verify-examples;
|
elm-verify-examples = patchBinwrap [elmi-to-json] nodePkgs.elm-verify-examples;
|
||||||
|
elm-coverage =
|
||||||
|
let patched = patchBinwrap [elm elmi-to-json] nodePkgs.elm-coverage;
|
||||||
|
in patched.override {
|
||||||
|
preRebuild = ''
|
||||||
|
sed 's/\"install\".*/\"install\":\"echo no-op\"/g' --in-place package.json
|
||||||
|
|
||||||
|
# This should not be needed (thanks to binwrap* being nooped) but for some reason it still needs to be done
|
||||||
|
# in case of just this package
|
||||||
|
sed 's/\"install\".*/\"install\":\"echo no-op\",/g' --in-place node_modules/elmi-to-json/package.json
|
||||||
|
|
||||||
|
rm node_modules/elm/install.js
|
||||||
|
echo "console.log('no-op');" > node_modules/elm/install.js
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Link Elm instrument binary
|
||||||
|
postInstall = patched.postInstall + ''
|
||||||
|
mkdir -p unpacked_bin
|
||||||
|
ln -sf ${elm-instrument}/bin/elm-instrument unpacked_bin/elm-instrument
|
||||||
|
'';
|
||||||
|
};
|
||||||
elm-language-server = nodePkgs."@elm-tooling/elm-language-server";
|
elm-language-server = nodePkgs."@elm-tooling/elm-language-server";
|
||||||
|
|
||||||
inherit (nodePkgs) elm-doc-preview elm-live elm-upgrade elm-xref elm-analyse;
|
inherit (nodePkgs) elm-doc-preview elm-live elm-upgrade elm-xref elm-analyse;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This file has been generated by node2nix 1.8.0. Do not edit!
|
# This file has been generated by node2nix 1.7.0. Do not edit!
|
||||||
|
|
||||||
{pkgs ? import <nixpkgs> {
|
{pkgs ? import <nixpkgs> {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
[
|
[
|
||||||
"elm-test",
|
|
||||||
"elm-verify-examples",
|
|
||||||
"elm-doc-preview",
|
|
||||||
"elm-upgrade",
|
|
||||||
"elm-analyse",
|
"elm-analyse",
|
||||||
|
"elm-coverage",
|
||||||
|
"elm-doc-preview",
|
||||||
|
"@elm-tooling/elm-language-server",
|
||||||
"elm-live",
|
"elm-live",
|
||||||
"elm-xref",
|
"elm-test",
|
||||||
"@elm-tooling/elm-language-server"
|
"elm-upgrade",
|
||||||
|
"elm-verify-examples",
|
||||||
|
"elm-xref"
|
||||||
]
|
]
|
||||||
|
|
1626
pkgs/development/compilers/elm/packages/node-packages.nix
generated
1626
pkgs/development/compilers/elm/packages/node-packages.nix
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue