Skip to content

Commit

Permalink
documentation-highlighter: less weird source filter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lheckemann authored and cole-h committed Jun 15, 2023
1 parent 4f992e8 commit 7a53dae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkgs/misc/documentation-highlighter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ runCommand "documentation-highlighter" {
};
src = lib.sources.cleanSourceWith {
src = ./.;
filter = path: type: lib.elem path (map toString [
./highlight.pack.js
./LICENSE
./loader.js
./mono-blue.css
./README.md
filter = path: type: lib.elem (baseNameOf path) ([
"highlight.pack.js"
"LICENSE"
"loader.js"
"mono-blue.css"
"README.md"
]);
};
} ''
Expand Down

0 comments on commit 7a53dae

Please sign in to comment.