depot/pkgs/misc/documentation-highlighter/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

22 lines
566 B
Nix

{ lib, runCommand }:
runCommand "documentation-highlighter" {
meta = {
description = "Highlight.js sources for the Nix Ecosystem's documentation";
homepage = "https://highlightjs.org";
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.grahamc ];
};
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"
''