Merge pull request #281012 from adamcstephens/nh/fix-darwin

nh: fix darwin build
This commit is contained in:
Adam C. Stephens
2024-01-15 07:11:57 -05:00
committed by GitHub
+5 -1
View File
@@ -1,7 +1,9 @@
{ lib
{ stdenv
, lib
, rustPlatform
, installShellFiles
, makeBinaryWrapper
, darwin
, fetchFromGitHub
, nix-update-script
, nvd
@@ -33,6 +35,8 @@ rustPlatform.buildRustPackage {
makeBinaryWrapper
];
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
preFixup = ''
mkdir completions
$out/bin/nh completions --shell bash > completions/nh.bash