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
commit 95e25092e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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