Skip to content

Commit

Permalink
nix-static: disable on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 25, 2024
1 parent 4743879 commit eb2bdb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,10 @@
(pkgName: { supportsCross ? true }: {
# These attributes go right into `packages.<system>`.
"${pkgName}" = nixpkgsFor.${system}.native.nixComponents.${pkgName};
# evaluation error on boost in nixpkgs on macOS
} // lib.optionalAttrs nixpkgsFor.${system}.native.stdenv.hostPlatform.isDarwin {
"${pkgName}-static" = nixpkgsFor.${system}.static.nixComponents.${pkgName};
}
// lib.optionalAttrs supportsCross (flatMapAttrs (lib.genAttrs crossSystems (_: { })) (crossSystem: {}: {
} // lib.optionalAttrs supportsCross (flatMapAttrs (lib.genAttrs crossSystems (_: { })) (crossSystem: {}: {
# These attributes go right into `packages.<system>`.
"${pkgName}-${crossSystem}" = nixpkgsFor.${system}.cross.${crossSystem}.nixComponents.${pkgName};
}))
Expand Down

0 comments on commit eb2bdb0

Please sign in to comment.