2021-03-04 12:54:50 +00:00
|
|
|
{ lib, runCommand }:
|
2018-03-27 02:06:42 +01:00
|
|
|
runCommand "documentation-highlighter" {
|
|
|
|
meta = {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Highlight.js sources for the Nix Ecosystem's documentation";
|
2020-04-02 21:01:48 +01: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 02:06:42 +01:00
|
|
|
};
|
2023-01-23 21:58:03 +00:00
|
|
|
src = lib.sources.cleanSourceWith {
|
|
|
|
src = ./.;
|
2023-06-15 17:51:37 +01:00
|
|
|
filter = path: type: lib.elem (baseNameOf path) ([
|
|
|
|
"highlight.pack.js"
|
|
|
|
"LICENSE"
|
|
|
|
"loader.js"
|
|
|
|
"mono-blue.css"
|
|
|
|
"README.md"
|
2023-01-23 21:58:03 +00:00
|
|
|
]);
|
|
|
|
};
|
2018-03-27 02:06:42 +01:00
|
|
|
} ''
|
2023-01-23 21:58:03 +00:00
|
|
|
cp -r "$src" "$out"
|
2018-03-27 02:06:42 +01:00
|
|
|
''
|