mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
f6e5ea8a2c
Makes the build independency of the default.nix and update.sh file by explicitly specifying the files that are needed in the result This allows changing those files without causing a rebuild
23 lines
566 B
Nix
23 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 path (map toString [
|
|
./highlight.pack.js
|
|
./LICENSE
|
|
./loader.js
|
|
./mono-blue.css
|
|
./README.md
|
|
]);
|
|
};
|
|
} ''
|
|
cp -r "$src" "$out"
|
|
''
|