We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5910a8 + bcf9ceb commit e5f2262Copy full SHA for e5f2262
nix/default.nix
@@ -5,7 +5,11 @@ let
5
# affect the fixed derivation calculation from sbt-derivation
6
overlay = final: prev: let
7
inherit (import sources.gitignore { inherit (prev) lib; }) gitignoreSource;
8
- cleanedSrc = prev.lib.cleanSource (gitignoreSource src);
+ # If src isn't a path, it's likely a prefiltered store path, so use it directly
9
+ # This also makes Nix flakes work by passing the flake source as the `src` arg
10
+ cleanedSrc = if builtins.isPath src
11
+ then prev.lib.cleanSource (gitignoreSource src)
12
+ else src;
13
in {
14
inherit sources;
15
0 commit comments