2021-03-04 12:54:50 +00:00
|
|
|
{ lib, runCommand }:
|
2018-03-27 01:06:42 +00:00
|
|
|
runCommand "documentation-highlighter" {
|
|
|
|
meta = {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Highlight.js sources for the Nix Ecosystem's documentation";
|
2020-04-02 20:01:48 +00:00
|
|
|
homepage = "https://highlightjs.org";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = [ lib.maintainers.grahamc ];
|
2018-03-27 01:06:42 +00:00
|
|
|
};
|
2023-01-23 21:58:03 +00:00
|
|
|
src = lib.sources.cleanSourceWith {
|
|
|
|
src = ./.;
|
|
|
|
filter = path: type: lib.elem path (map toString [
|
|
|
|
./highlight.pack.js
|
|
|
|
./LICENSE
|
|
|
|
./loader.js
|
|
|
|
./mono-blue.css
|
|
|
|
./README.md
|
|
|
|
]);
|
|
|
|
};
|
2018-03-27 01:06:42 +00:00
|
|
|
} ''
|
2023-01-23 21:58:03 +00:00
|
|
|
cp -r "$src" "$out"
|
2018-03-27 01:06:42 +00:00
|
|
|
''
|