mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 07:17:57 +00:00
runCommand: don't set meta.position if meta is given
Fixes #242093 without breaking #237589 If `meta` is given we probably already have position information, so no need to get it from the arguments.
This commit is contained in:
parent
e08fab0406
commit
9be0bfb5e0
@ -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 New Issue
Block a user