nodePackages.vega-lite: init at version 4.15.0

Co-authored-by: Doron Behar <doron.behar@gmail.com>
This commit is contained in:
Matthias Meschede
2020-09-19 19:30:19 +03:00
committed by Doron Behar
co-authored by Doron Behar
parent 233331c223
commit 7fb1ee093d
3 changed files with 150 additions and 40 deletions
@@ -181,6 +181,21 @@ let
];
};
vega-lite = super.vega-lite.override {
# npx tries to install vega from scratch at vegalite runtime if it
# can't find it. We thus replace it with a direct call to the nix
# derivation. This might not be necessary anymore in future vl
# versions: https://github.com/vega/vega-lite/issues/6863.
postInstall = ''
substituteInPlace $out/lib/node_modules/vega-lite/bin/vl2pdf \
--replace "npx -p vega vg2pdf" "${self.vega-cli}/bin/vg2pdf"
substituteInPlace $out/lib/node_modules/vega-lite/bin/vl2svg \
--replace "npx -p vega vg2svg" "${self.vega-cli}/bin/vg2svg"
substituteInPlace $out/lib/node_modules/vega-lite/bin/vl2png \
--replace "npx -p vega vg2png" "${self.vega-cli}/bin/vg2png"
'';
};
webtorrent-cli = super.webtorrent-cli.override {
buildInputs = [ self.node-gyp-build ];
};