Merge pull request #276892 from trofi/nix-set-pos-attribute
This commit is contained in:
commit
fae15249c5
@ -6,7 +6,7 @@
|
||||
, src ? fetchFromGitHub { owner = "NixOS"; repo = "nix"; rev = version; inherit hash; }
|
||||
, patches ? [ ]
|
||||
, maintainers ? with lib.maintainers; [ eelco lovesegfault artturin ]
|
||||
}:
|
||||
}@args:
|
||||
assert (hash == null) -> (src != null);
|
||||
let
|
||||
atLeast24 = lib.versionAtLeast version "2.4pre";
|
||||
@ -237,6 +237,9 @@ self = stdenv.mkDerivation {
|
||||
};
|
||||
};
|
||||
|
||||
# point 'nix edit' and ofborg at the file that defines the attribute,
|
||||
# not this common file.
|
||||
pos = builtins.unsafeGetAttrPos "version" args;
|
||||
meta = with lib; {
|
||||
description = "Powerful package manager that makes package management reliable and reproducible";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user