Merge pull request #242099 from ncfavier/runCommand-meta-position
runCommand: don't set meta.position if meta is given
This commit is contained in:
commit
4dadd7ef86
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ rec {
|
|||
inherit buildCommand name;
|
||||
passAsFile = [ "buildCommand" ]
|
||||
++ (derivationArgs.passAsFile or []);
|
||||
}
|
||||
// lib.optionalAttrs (! derivationArgs?meta) {
|
||||
pos = let args = builtins.attrNames derivationArgs; in
|
||||
if builtins.length args > 0
|
||||
then builtins.unsafeGetAttrPos (builtins.head args) derivationArgs
|
||||
|
|
Loading…
Reference in a new issue