diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-08-11 15:02:15 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-08-11 15:05:58 +0000 |
commit | 3a776f26de605cba13b421fc8ad68c46b13670aa (patch) | |
tree | 820a0e3758a03569db92e4fe37d46ad5774c5415 /Documentation | |
parent | 50e5a755ac398857ae7b7f13abf639ba9c8f10aa (diff) | |
download | spectrum-3a776f26de605cba13b421fc8ad68c46b13670aa.tar spectrum-3a776f26de605cba13b421fc8ad68c46b13670aa.tar.gz spectrum-3a776f26de605cba13b421fc8ad68c46b13670aa.tar.bz2 spectrum-3a776f26de605cba13b421fc8ad68c46b13670aa.tar.lz spectrum-3a776f26de605cba13b421fc8ad68c46b13670aa.tar.xz spectrum-3a776f26de605cba13b421fc8ad68c46b13670aa.tar.zst spectrum-3a776f26de605cba13b421fc8ad68c46b13670aa.zip |
Documentation: fix source filter
The name passed into cleanSourceWith's predicate is a path, not just the basename, so we need to extract the basename before checking it against our denylist. Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/default.nix b/Documentation/default.nix index fadc1d0..ae391ae 100644 --- a/Documentation/default.nix +++ b/Documentation/default.nix @@ -9,8 +9,8 @@ runCommand "spectrum-docs" { src = with lib; cleanSourceWith { src = cleanSource ./.; filter = name: _type: - name != ".jekyll-cache" && - name != "_site" && + builtins.baseNameOf name != ".jekyll-cache" && + builtins.baseNameOf name != "_site" && !(hasSuffix ".nix" name) && !(hasSuffix ".svg" name); }; |