1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

nix-cli: restore binary-dist artifact to Hydra static builds

This commit is contained in:
Cole Helbling 2025-04-24 07:56:11 -07:00
parent 7880afcacd
commit e1b68244ad
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
{ {
stdenv,
lib, lib,
mkMesonExecutable, mkMesonExecutable,
@ -94,6 +95,11 @@ mkMesonExecutable (finalAttrs: {
mesonFlags = [ 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 = { meta = {
mainProgram = "nix"; mainProgram = "nix";
platforms = lib.platforms.unix ++ lib.platforms.windows; platforms = lib.platforms.unix ++ lib.platforms.windows;