Files
nixpkgs/pkgs/misc/documentation-highlighter/default.nix
2026-01-26 23:48:38 +01:00

29 lines
653 B
Nix

{ 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"
''