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 = lib.sources.cleanSourceWith {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
filter = path: type: lib.elem path (map toString [
|
filter = path: type: lib.elem (baseNameOf path) ([
|
||||||
./highlight.pack.js
|
"highlight.pack.js"
|
||||||
./LICENSE
|
"LICENSE"
|
||||||
./loader.js
|
"loader.js"
|
||||||
./mono-blue.css
|
"mono-blue.css"
|
||||||
./README.md
|
"README.md"
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
} ''
|
} ''
|
||||||
|
|
Loading…
Reference in a new issue