3
0
Fork 0
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:
Domen Kožar 2020-03-17 15:01:55 +01:00 committed by GitHub
commit e6b5bcd70f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1081 additions and 582 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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"
] ]

File diff suppressed because it is too large Load diff