Merge pull request #125145 from lovesegfault/kalk-init
This commit is contained in:
commit
e7af271587
2 changed files with 40 additions and 0 deletions
38
pkgs/tools/misc/kalk/default.nix
Normal file
38
pkgs/tools/misc/kalk/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, m4
|
||||
, rustPlatform
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "kalk";
|
||||
version = "0.5.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PaddiM8";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-lHHnNiNy8L8GdjOj5EqtticnksPrCwhFoFatFrWEQJ4=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-Qtip9CeurTM4aY67F5tSM3fis6W/dlnaIVMQ29UoBzc=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -2834,6 +2834,8 @@ in
|
|||
|
||||
kaldi = callPackage ../tools/audio/kaldi { };
|
||||
|
||||
kalk = callPackage ../tools/misc/kalk { };
|
||||
|
||||
kisslicer = callPackage ../tools/misc/kisslicer { };
|
||||
|
||||
klaus = with python3Packages; toPythonApplication klaus;
|
||||
|
|
Loading…
Reference in a new issue