1{ lib, runCommand }:
2runCommand "documentation-highlighter"
3 {
4 meta = {
5 description = "Highlight.js sources for the Nix Ecosystem's documentation";
6 homepage = "https://highlightjs.org";
7 license = lib.licenses.bsd3;
8 platforms = lib.platforms.all;
9 maintainers = [ lib.maintainers.grahamc ];
10 };
11 src = lib.sources.cleanSourceWith {
12 src = ./.;
13 filter =
14 path: type:
15 lib.elem (baseNameOf path) ([
16 "highlight.pack.js"
17 "LICENSE"
18 "loader.js"
19 "mono-blue.css"
20 "README.md"
21 ]);
22 };
23 }
24 ''
25 cp -r "$src" "$out"
26 ''