mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-20 12:08:17 +03:00
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.
This commit is contained in:
parent
4f992e8da0
commit
7a53daed2a
@ -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"
|
||||
]);
|
||||
};
|
||||
} ''
|
||||
|
Loading…
Reference in New Issue
Block a user