diff options
author | Naïm Favier <n@monade.li> | 2023-07-07 19:10:03 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2023-07-07 19:12:35 +0200 |
commit | 9be0bfb5e06ce2d88b40df1235142f99389b39c4 (patch) | |
tree | 69cffcd41a3b31db4af06fed5a90f843b8ba6c82 /pkgs/build-support | |
parent | e08fab0406465bc1ba9f4d2895159c89e952ad71 (diff) |
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.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/trivial-builders/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/trivial-builders/default.nix b/pkgs/build-support/trivial-builders/default.nix index 871f9722a4a2e..9099a38b75b3e 100644 --- a/pkgs/build-support/trivial-builders/default.nix +++ b/pkgs/build-support/trivial-builders/default.nix @@ -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 |