From 6390b8b7cfd4e6f41328fd881f4583e462a19168 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Thu, 24 Apr 2025 07:56:11 -0700 Subject: [PATCH] nix-cli: restore binary-dist artifact to Hydra static builds (cherry picked from commit e1b68244ade89a0e3ad9ea5da3e41eb77aba1b15) --- src/nix/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nix/package.nix b/src/nix/package.nix index 40a280437..3d4f6f40b 100644 --- a/src/nix/package.nix +++ b/src/nix/package.nix @@ -1,4 +1,5 @@ { + stdenv, lib, mkMesonExecutable, @@ -94,6 +95,11 @@ mkMesonExecutable (finalAttrs: { mesonFlags = [ ]; + postInstall = lib.optionalString stdenv.hostPlatform.isStatic '' + mkdir -p $out/nix-support + echo "file binary-dist $out/bin/nix" >> $out/nix-support/hydra-build-products + ''; + meta = { mainProgram = "nix"; platforms = lib.platforms.unix ++ lib.platforms.windows;