lol

documentation-highlighter: less weird source filter

The expansion into absolute paths caused the filter to reject all the
files in some unusual circumstances (we think it's due to use of a
chroot store). This works reliably no matter where nixpkgs is located.

authored by

Linus Heckemann and committed by helbling.dev 7a53daed 4f992e8d

+6 -6
+6 -6
pkgs/misc/documentation-highlighter/default.nix
··· 9 9 }; 10 10 src = lib.sources.cleanSourceWith { 11 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 12 + filter = path: type: lib.elem (baseNameOf path) ([ 13 + "highlight.pack.js" 14 + "LICENSE" 15 + "loader.js" 16 + "mono-blue.css" 17 + "README.md" 18 18 ]); 19 19 }; 20 20 } ''