mirror of
https://github.com/nix-community/naersk
synced 2024-11-25 21:10:25 +00:00
remove fetchGit allRefs flag for nix <2.4
Prevent use of allRefs when nix <2.4 is in use. nix <2.4 does not accept the `allRefs` flag, but has `allRefs` behavior by default. Note that this goes beyond the the initial intent of this PR because it enables naersk's `gitAllRefs` flag to work on nix <2.4.
This commit is contained in:
parent
e300ddf8cb
commit
cddffb5aa2
1 changed files with 1 additions and 1 deletions
2
lib.nix
2
lib.nix
|
@ -111,7 +111,7 @@ rec
|
||||||
ref = lock.branch;
|
ref = lock.branch;
|
||||||
} // lib.optionalAttrs (lock ? tag) {
|
} // lib.optionalAttrs (lock ? tag) {
|
||||||
ref = lock.tag;
|
ref = lock.tag;
|
||||||
} // lib.optionalAttrs (gitAllRefs || lock ? rev) {
|
} // lib.optionalAttrs ((lib.versionAtLeast builtins.nixVersion "2.4") && (gitAllRefs || lock ? rev)) {
|
||||||
allRefs = true;
|
allRefs = true;
|
||||||
} // lib.optionalAttrs gitSubmodules {
|
} // lib.optionalAttrs gitSubmodules {
|
||||||
submodules = true;
|
submodules = true;
|
||||||
|
|
Loading…
Reference in a new issue