nixpkgs/pkgs/tools/misc/kalker/default.nix

42 lines
1015 B
Nix
Raw Normal View History

2021-06-01 01:28:25 +01:00
{ lib
, fetchFromGitHub
, gcc
, gmp, mpfr, libmpc
2021-06-01 01:28:25 +01:00
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
2021-06-03 20:29:19 +01:00
pname = "kalker";
2021-10-01 13:43:43 +01:00
version = "1.0.1-2";
2021-06-01 01:28:25 +01:00
src = fetchFromGitHub {
owner = "PaddiM8";
repo = pname;
rev = "v${version}";
2021-10-01 13:43:43 +01:00
sha256 = "sha256-fXTsCHqm+wO/ygyg0y+44G9pgaaEEH9fgePCDH86/vU=";
2021-06-01 01:28:25 +01:00
};
2021-10-01 13:43:43 +01:00
cargoSha256 = "sha256-Ul21otEYCJuX5GnfV9OTpk/+3y32biASYZQpOecr8aU=";
2021-06-01 01:28:25 +01:00
buildInputs = [ gmp mpfr libmpc ];
2021-06-01 01:28:25 +01:00
outputs = [ "out" "lib" ];
postInstall = ''
moveToOutput "lib" "$lib"
'';
CARGO_FEATURE_USE_SYSTEM_LIBS = "1";
2021-06-01 01:28:25 +01:00
meta = with lib; {
2021-06-03 20:29:19 +01:00
homepage = "https://kalker.strct.net";
changelog = "https://github.com/PaddiM8/kalker/releases/tag/v${version}";
2021-06-01 01:28:25 +01:00
description = "A command line calculator";
longDescription = ''
A command line calculator that supports math-like syntax with user-defined
variables, functions, derivation, integration, and complex numbers
'';
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}