lol

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

+11 -1
+11 -1
pkgs/misc/documentation-highlighter/default.nix
··· 7 7 platforms = lib.platforms.all; 8 8 maintainers = [ lib.maintainers.grahamc ]; 9 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 + }; 10 20 } '' 11 - cp -r ${./.} $out 21 + cp -r "$src" "$out" 12 22 ''