From 7402e825371fb1100fc6d18e2d1b6247bcb1fcfd Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 20 Feb 2025 01:12:30 +0100 Subject: [PATCH] nixVersions.nix_2_26: Expose derivation system --- .../package-management/nix/2_26/packaging/everything.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/package-management/nix/2_26/packaging/everything.nix b/pkgs/tools/package-management/nix/2_26/packaging/everything.nix index d8fc835f235d..8eb5e71f59e7 100644 --- a/pkgs/tools/package-management/nix/2_26/packaging/everything.nix +++ b/pkgs/tools/package-management/nix/2_26/packaging/everything.nix @@ -184,6 +184,12 @@ makeOutputs { inherit (nix-cli) version; # Should not be required inherit (drv) drvPath; + /** + The build platform's system string, used by Nix to dispatch derivations to the correct kinds of hosts. + + This particular attribute is _not_ used for that purpose, but it has the same value, and some other expressions expect it to be present. + */ + inherit (drv) system; tests = drv.tests or {}; src = patchedSrc; };