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

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

45 lines
1.0 KiB
Nix
Raw Normal View History

2021-06-01 00:28:25 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, gmp
, mpfr
, libmpc
2021-06-01 00:28:25 +00:00
}:
2021-06-01 00:28:25 +00:00
rustPlatform.buildRustPackage rec {
2021-06-03 19:29:19 +00:00
pname = "kalker";
2024-10-04 02:48:53 +00:00
version = "2.2.1";
2021-06-01 00:28:25 +00:00
src = fetchFromGitHub {
owner = "PaddiM8";
repo = pname;
rev = "v${version}";
2024-10-04 02:48:53 +00:00
hash = "sha256-fFeHL+Q1Y0J3rOgbFA952rjae/OQgHTznDI0Kya1KMQ=";
2021-06-01 00:28:25 +00:00
};
2024-10-04 02:48:53 +00:00
cargoHash = "sha256-hgtSDPQRrqhQALqzVW8z9xXqIv+v5/Sbs6McrUCKiaU=";
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"
'';
env.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 = "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; [ figsoda lovesegfault ];
2023-11-27 01:17:53 +00:00
mainProgram = "kalker";
2021-06-01 00:28:25 +00:00
};
}