summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/documentation-highlighter/default.nix
blob: 7350b2c7c5e0fe9f93399c29d32b6777822595c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, runCommand }:
runCommand "documentation-highlighter"
  {
    pname = "documentation-highlighter";
    version = "11.9.0";

    meta = {
      description = "Highlight.js sources for the Nix Ecosystem's documentation";
      homepage = "https://highlightjs.org";
      license = lib.licenses.bsd3;
      platforms = lib.platforms.all;
    };
    src = lib.sources.cleanSourceWith {
      src = ./.;
      filter =
        path: type:
        lib.elem (baseNameOf path) [
          "highlight.pack.js"
          "LICENSE"
          "loader.js"
          "mono-blue.css"
          "README.md"
        ];
    };
  }
  ''
    cp -r "$src" "$out"
  ''