Skip to content

Commit

Permalink
nix: lib.optional doesn't take a list
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jul 11, 2024
1 parent c94cc9a commit 8c35edf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/by-name/microsoft/cloud-hypervisor/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,10 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ openssl ];

buildNoDefaultFeatures = true;
buildFeatures =
[
"mshv"
"kvm"
]
++ lib.optional withIGVM [ "igvm" ]
++ lib.optional withSEVSNP [ "snp" ]
++ lib.optional withTDX [ "tdx" ];
buildFeatures = [
"mshv"
"kvm"
] ++ lib.optional withIGVM "igvm" ++ lib.optional withSEVSNP "snp" ++ lib.optional withTDX "tdx";

OPENSSL_NO_VENDOR = true;

Expand Down

0 comments on commit 8c35edf

Please sign in to comment.