mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
Merge pull request #127355 from cjab/programmer-calculator
This commit is contained in:
commit
b2a93084f0
|
@ -1883,6 +1883,12 @@
|
||||||
githubId = 2131991;
|
githubId = 2131991;
|
||||||
name = "Elmo Todurov";
|
name = "Elmo Todurov";
|
||||||
};
|
};
|
||||||
|
cjab = {
|
||||||
|
email = "chad+nixpkgs@jablonski.xyz";
|
||||||
|
github = "cjab";
|
||||||
|
githubId = 136485;
|
||||||
|
name = "Chad Jablonski";
|
||||||
|
};
|
||||||
ck3d = {
|
ck3d = {
|
||||||
email = "ck3d@gmx.de";
|
email = "ck3d@gmx.de";
|
||||||
github = "ck3d";
|
github = "ck3d";
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib, gccStdenv, fetchFromGitHub, ncurses }:
|
||||||
|
|
||||||
|
gccStdenv.mkDerivation rec {
|
||||||
|
pname = "programmer-calculator";
|
||||||
|
version = "2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "alt-romes";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1vvpbj24ijl9ma0h669n9x0z1im3vqdf8zf2li0xf5h97b14gmv0";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -Dm 555 pcalc -t "$out/bin"
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A terminal calculator for programmers";
|
||||||
|
longDescription = ''
|
||||||
|
Terminal calculator made for programmers working with multiple number
|
||||||
|
representations, sizes, and overall close to the bits
|
||||||
|
'';
|
||||||
|
homepage = "https://alt-romes.github.io/programmer-calculator";
|
||||||
|
changelog = "https://github.com/alt-romes/programmer-calculator/releases/tag/v${version}";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with lib.maintainers; [ cjab ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
|
@ -30252,6 +30252,8 @@ in
|
||||||
|
|
||||||
pcalc = callPackage ../applications/science/math/pcalc { };
|
pcalc = callPackage ../applications/science/math/pcalc { };
|
||||||
|
|
||||||
|
programmer-calculator = callPackage ../applications/science/math/programmer-calculator { };
|
||||||
|
|
||||||
bcal = callPackage ../applications/science/math/bcal { };
|
bcal = callPackage ../applications/science/math/bcal { };
|
||||||
|
|
||||||
pspp = callPackage ../applications/science/math/pspp { };
|
pspp = callPackage ../applications/science/math/pspp { };
|
||||||
|
|
Loading…
Reference in a new issue