forked from mirrors/nixpkgs
documentation-highlighter: Only depend on needed files
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
This commit is contained in:
parent
287b071e9a
commit
f6e5ea8a2c
|
@ -7,6 +7,16 @@ runCommand "documentation-highlighter" {
|
|||
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 ${./.} $out
|
||||
cp -r "$src" "$out"
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue