diff options
author | Naïm Favier <n@monade.li> | 2023-07-16 14:50:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-16 14:50:23 +0200 |
commit | 4dadd7ef86f5b4c513f55f71d0b82a4d6249e083 (patch) | |
tree | 09e10f3904f1894a494ebce8cffd01f4a966201c /pkgs/build-support | |
parent | 12d2f0da28a47f907825939630b4a0e8122fabe3 (diff) | |
parent | 9be0bfb5e06ce2d88b40df1235142f99389b39c4 (diff) |
Merge pull request #242099 from ncfavier/runCommand-meta-position
runCommand: don't set meta.position if meta is given
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 |