From 5605871d96747e608cb4119d8c45d92d7dc00543 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 16 Apr 2026 12:39:52 +0200 Subject: [PATCH] writeShellApplication: fix meta.position This avoids getting random pings when the trivial builders are changed. --- pkgs/build-support/trivial-builders/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/trivial-builders/default.nix b/pkgs/build-support/trivial-builders/default.nix index 94b7d04e0d22..4c7a35e15bb6 100644 --- a/pkgs/build-support/trivial-builders/default.nix +++ b/pkgs/build-support/trivial-builders/default.nix @@ -109,6 +109,7 @@ rec { allowSubstitutes ? false, preferLocalBuild ? true, derivationArgs ? { }, + pos ? builtins.unsafeGetAttrPos "name" args, }@args: assert lib.assertMsg (destination != "" -> (lib.hasPrefix "/" destination && destination != "/")) '' destination must be an absolute path, relative to the derivation's out path, @@ -123,8 +124,8 @@ rec { runCommand name ( { - pos = builtins.unsafeGetAttrPos "name" args; inherit + pos text executable checkPhase @@ -261,6 +262,7 @@ rec { inheritPath ? true, }@args: writeTextFile { + pos = builtins.unsafeGetAttrPos "name" args; inherit name meta