about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorFinn Behrens <me@kloenk.dev>2021-09-22 21:25:52 +0200
committerFinn Behrens <me@kloenk.dev>2021-09-22 21:25:52 +0200
commit5d6761be60e23caf72b72488576d6f9f4525cb94 (patch)
treee24cc5d8396c33fca3271213e31e833e0eaf9122 /pkgs/tools
parentc5ccc212ebdef7c01c9c960e2f304a1e80234f52 (diff)
kalker: use system gmp to fix aarch64-darwin
Signed-off-by: Finn Behrens <me@kloenk.dev>
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/kalker/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/misc/kalker/default.nix b/pkgs/tools/misc/kalker/default.nix
index 503edb910f0cc..230e5c629fbe9 100644
--- a/pkgs/tools/misc/kalker/default.nix
+++ b/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}";