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

39 lines
939 B
Nix
Raw Normal View History

2021-06-01 00:28:25 +00:00
{ lib
, fetchFromGitHub
, m4
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "kalk";
2021-06-03 18:54:48 +00:00
version = "1.0.0";
2021-06-01 00:28:25 +00:00
src = fetchFromGitHub {
owner = "PaddiM8";
repo = pname;
rev = "v${version}";
2021-06-03 18:54:48 +00:00
sha256 = "sha256-1iZvp30/V0bw9NBxiKNiDgOMYJkDsGhTGdBsAPggdEg=";
2021-06-01 00:28:25 +00:00
};
2021-06-03 18:54:48 +00:00
cargoSha256 = "sha256-qHXlhKeuDpebpbbGr34Uvwyg//HdCL0UoTqRf9vEfmE=";
2021-06-01 00:28:25 +00:00
nativeBuildInputs = [ m4 ];
outputs = [ "out" "lib" ];
postInstall = ''
moveToOutput "lib" "$lib"
'';
meta = with lib; {
homepage = "https://kalk.strct.net";
changelog = "https://github.com/PaddiM8/kalk/releases/tag/v${version}";
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 ];
};
}