spade: enable build on darwin (#335520)

This commit is contained in:
Becker A.
2024-08-19 22:05:17 +02:00
committed by GitHub
parent 02c887764c
commit a7d066ea4b
+17 -9
View File
@@ -1,10 +1,12 @@
{ lib
, rustPlatform
, fetchFromGitLab
, stdenv
, nix-update
, writeScript
, git
{
lib,
rustPlatform,
fetchFromGitLab,
stdenv,
nix-update,
writeScript,
git,
python312,
}:
rustPlatform.buildRustPackage rec {
@@ -39,14 +41,20 @@ rustPlatform.buildRustPackage rec {
'')
];
buildInputs = lib.optionals stdenv.isDarwin [ python312 ];
env.NIX_CFLAGS_LINK = lib.optionals stdenv.isDarwin "-L${python312}/lib/python3.12/config-3.12-darwin -lpython3.12";
meta = with lib; {
description = "Better hardware description language";
homepage = "https://gitlab.com/spade-lang/spade";
changelog = "https://gitlab.com/spade-lang/spade/-/blob/${src.rev}/CHANGELOG.md";
# compiler is eupl12, spade-lang stdlib is both asl20 and mit
license = with licenses; [ eupl12 asl20 mit ];
license = with licenses; [
eupl12
asl20
mit
];
maintainers = with maintainers; [ pbsds ];
mainProgram = "spade";
broken = stdenv.isDarwin; # ld: symbol(s) not found for architecture ${system}
};
}