nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, runCommand }:
2runCommand "documentation-highlighter" {
3 meta = {
4 description = "Highlight.js sources for the Nix Ecosystem's documentation";
5 homepage = "https://highlightjs.org";
6 license = lib.licenses.bsd3;
7 platforms = lib.platforms.all;
8 maintainers = [ lib.maintainers.grahamc ];
9 };
10 src = lib.sources.cleanSourceWith {
11 src = ./.;
12 filter = path: type: lib.elem path (map toString [
13 ./highlight.pack.js
14 ./LICENSE
15 ./loader.js
16 ./mono-blue.css
17 ./README.md
18 ]);
19 };
20} ''
21 cp -r "$src" "$out"
22''