2021-03-09 03:18:52 +00:00
|
|
|
{ lib, runCommand }:
|
2020-04-24 23:36:52 +00:00
|
|
|
runCommand "documentation-highlighter" {
|
|
|
|
meta = {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Highlight.js sources for the Nix Ecosystem's documentation";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://highlightjs.org";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = [ lib.maintainers.grahamc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-02-02 18:25:31 +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
|
|
|
|
]);
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
} ''
|
2023-02-02 18:25:31 +00:00
|
|
|
cp -r "$src" "$out"
|
2020-04-24 23:36:52 +00:00
|
|
|
''
|