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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1013 B
Nix
Raw Normal View History

2021-06-01 00:28:25 +00:00
{ lib
, fetchFromGitHub
, gcc
, gmp, mpfr, libmpc
2021-06-01 00:28:25 +00:00
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
2021-06-03 19:29:19 +00:00
pname = "kalker";
2022-07-28 17:38:08 +00:00
version = "2.0.0";
2021-06-01 00:28:25 +00:00
src = fetchFromGitHub {
owner = "PaddiM8";
repo = pname;
rev = "v${version}";
2022-07-28 17:38:08 +00:00
sha256 = "sha256-D7FlX72fcbeVtQ/OtK2Y3P1hZ5Bmowa04up5rTTXDDU=";
2021-06-01 00:28:25 +00:00
};
2022-07-28 17:38:08 +00:00
cargoSha256 = "sha256-r20kQG6YeNGGb7ovYaAx+4DGijZSmf5YoIYh3z5zOpk=";
2021-06-01 00:28:25 +00:00
buildInputs = [ gmp mpfr libmpc ];
2021-06-01 00:28:25 +00:00
outputs = [ "out" "lib" ];
postInstall = ''
moveToOutput "lib" "$lib"
'';
CARGO_FEATURE_USE_SYSTEM_LIBS = "1";
2021-06-01 00:28:25 +00:00
meta = with lib; {
2021-06-03 19:29:19 +00:00
homepage = "https://kalker.strct.net";
changelog = "https://github.com/PaddiM8/kalker/releases/tag/v${version}";
2021-06-01 00:28:25 +00: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 ];
};
}