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.
1 parent 992196d commit 5a651e8Copy full SHA for 5a651e8
nix/pkgs/mantis/default.nix
@@ -2,15 +2,16 @@
2
3
mkSrc = src:
4
let
5
- isGit = builtins.pathExists (src + "/.git");
+ isGit = lib.pathIsGitRepo (src + "/.git");
6
repo = builtins.fetchGit { url = src; submodules = true; };
7
dirty = repo.revCount == 0;
8
filterSrc = src:
9
lib.cleanSourceWith {
10
inherit src;
11
filter = path: _: !lib.hasSuffix "nix" path;
12
};
13
- in if isGit then
+ in
14
+ if isGit then
15
if dirty then filterSrc (gitignoreSource src) else repo
16
else
17
src;
0 commit comments