1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/pkgs/misc/documentation-highlighter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
566 B
Nix
Raw Normal View History

{ lib, runCommand }:
2018-03-27 02:06:42 +01:00
runCommand "documentation-highlighter" {
meta = {
description = "Highlight.js sources for the Nix Ecosystem's documentation";
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
};
src = lib.sources.cleanSourceWith {
src = ./.;
filter = path: type: lib.elem (baseNameOf path) ([
"highlight.pack.js"
"LICENSE"
"loader.js"
"mono-blue.css"
"README.md"
]);
};
2018-03-27 02:06:42 +01:00
} ''
cp -r "$src" "$out"
2018-03-27 02:06:42 +01:00
''