update gmp-mpfr-sys to fix non gcc builds

This commit is contained in:
Finn Behrens 2021-09-23 12:45:25 +02:00 committed by PaddiM8
parent 99bd813e14
commit 9e52119b59
3 changed files with 12 additions and 6 deletions

5
Cargo.lock generated
View File

@ -152,9 +152,8 @@ dependencies = [
[[package]]
name = "gmp-mpfr-sys"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a57fdb339d49833021b1fded600ed240ae907e33909d5511a61dff884df7f16e"
version = "1.4.7"
source = "git+https://gitlab.com/tspiteri/gmp-mpfr-sys.git#21966f4bfb56c87d407eb14c72e92ef4e55856aa"
dependencies = [
"libc",
"winapi",

View File

@ -1,3 +1,6 @@
[patch.crates-io]
gmp-mpfr-sys = { git = "https://gitlab.com/tspiteri/gmp-mpfr-sys.git" }
[workspace]
members = ["kalk", "cli"]

View File

@ -21,15 +21,19 @@
src = self;
nativeBuildInputs = with final; [ gcc ];
outputs = [ "out" "lib" ];
postInstall = ''
moveToOutput "lib" "$lib"
'';
cargoLock = { lockFile = self + "/Cargo.lock"; };
cargoLock = {
lockFile = self + "/Cargo.lock";
outputHashes = {
"gmp-mpfr-sys-1.4.7" =
"sha256-zHpGbEgh3MgAUVdlWrXq4Clj1boybi6DMOcsjgZbAh0=";
};
};
buildInputs = with final; [ gmp mpfr libmpc ];