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 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";
2022-01-11 15:22:47 +00:00
version = "1.1.0";
2021-06-01 01:28:25 +01:00
src = fetchFromGitHub {
owner = "PaddiM8";
repo = pname;
rev = "v${version}";
2022-01-11 15:22:47 +00:00
sha256 = "sha256-NnX4+VmV4oZg/8Z3ZCWHGZ6dqDfvH30XErnrvKMxyls=";
2021-06-01 01:28:25 +01:00
};
2022-01-11 15:22:47 +00:00
cargoSha256 = "sha256-nSLbe3EhcLYylvyzOWuLIehBnD6mMofsNpFQVEybV8k=";
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 ];
};
}