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 01:06:42 +00: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 01:06:42 +00:00
};
src = lib.sources.cleanSourceWith {
src = ./.;
filter = path: type: lib.elem path (map toString [
./highlight.pack.js
./LICENSE
./loader.js
./mono-blue.css
./README.md
]);
};
2018-03-27 01:06:42 +00:00
} ''
cp -r "$src" "$out"
2018-03-27 01:06:42 +00:00
''