kalker: use system gmp to fix aarch64-darwin

Signed-off-by: Finn Behrens <me@kloenk.dev>
main
Finn Behrens 3 years ago
parent c5ccc212eb
commit 5d6761be60
  1. 9
      pkgs/tools/misc/kalker/default.nix

@ -1,6 +1,7 @@
{ lib
, fetchFromGitHub
, m4
, gcc
, gmp, mpfr, libmpc
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
@ -16,7 +17,9 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-fBWnMlOLgwrOBPS2GIfOUDHQHcMMaU5r9JZVMbA+W58=";
nativeBuildInputs = [ m4 ];
# https://gitlab.com/tspiteri/gmp-mpfr-sys/-/issues/20
nativeBuildInputs = [ gcc ];
buildInputs = [ gmp mpfr libmpc ];
outputs = [ "out" "lib" ];
@ -24,6 +27,8 @@ rustPlatform.buildRustPackage rec {
moveToOutput "lib" "$lib"
'';
CARGO_FEATURE_USE_SYSTEM_LIBS = "1";
meta = with lib; {
homepage = "https://kalker.strct.net";
changelog = "https://github.com/PaddiM8/kalker/releases/tag/v${version}";

Loading…
Cancel
Save