9 rustPlatform.buildRustPackage rec {
13 src = fetchFromGitHub {
17 hash = "sha256-Ri0Os+/AqGWgf/2V5D7xvelOC3JTOMjNzjq56mhA3G4=";
20 cargoHash = "sha256-0+NYbVMIUarLppBZu6mtyGd+2fvkjEUq0TX7urBq3XI=";
22 buildInputs = [ gmp mpfr libmpc ];
24 outputs = [ "out" "lib" ];
26 # Cargo.lock is outdated
28 cargo metadata --offline
32 moveToOutput "lib" "$lib"
35 env.CARGO_FEATURE_USE_SYSTEM_LIBS = "1";
38 homepage = "https://kalker.strct.net";
39 changelog = "https://github.com/PaddiM8/kalker/releases/tag/v${version}";
40 description = "A command line calculator";
42 A command line calculator that supports math-like syntax with user-defined
43 variables, functions, derivation, integration, and complex numbers
45 license = licenses.mit;
46 maintainers = with maintainers; [ figsoda lovesegfault ];
47 mainProgram = "kalker";