diff options
author | Aleksana <me@aleksana.moe> | 2024-07-04 15:04:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 15:04:15 +0800 |
commit | 9fb66c698910d30a9e41b53b6ba79a55c9da1a9c (patch) | |
tree | 72e387480c661054c8eb9e29077cc096d433576b | |
parent | 8fa00a61925cf7fe2c302b8d0d9bb5119a7388bb (diff) | |
parent | b98d427bb9fa5b8556e30c96d3fbfe8e7a745fee (diff) |
Merge pull request #324430 from wegank/spades-darwin
spades: fix build on darwin
-rw-r--r-- | pkgs/by-name/sp/spades/package.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/by-name/sp/spades/package.nix b/pkgs/by-name/sp/spades/package.nix index 8ec4b71400d5a..b390524f718cc 100644 --- a/pkgs/by-name/sp/spades/package.nix +++ b/pkgs/by-name/sp/spades/package.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation (finalAttrs: { readline ]; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-faligned-allocation"; + doCheck = true; strictDeps = true; @@ -63,12 +65,8 @@ stdenv.mkDerivation (finalAttrs: { downloadPage = "https://github.com/ablab/spades"; homepage = "http://ablab.github.io/spades"; license = lib.licenses.gpl2Only; - platforms = [ - "aarch64-linux" - "x86_64-linux" - "x86_64-darwin" - ]; + platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ bzizou ]; - broken = stdenv.hostPlatform.isMusl && stdenv.isDarwin; + broken = stdenv.hostPlatform.isMusl; }; }) |