Merge pull request #127355 from cjab/programmer-calculator

authored by Sandro and committed by GitHub b2a93084 ec12eaec

+42
+6
maintainers/maintainer-list.nix
··· 1883 1883 githubId = 2131991; 1884 1884 name = "Elmo Todurov"; 1885 1885 }; 1886 + cjab = { 1887 + email = "chad+nixpkgs@jablonski.xyz"; 1888 + github = "cjab"; 1889 + githubId = 136485; 1890 + name = "Chad Jablonski"; 1891 + }; 1886 1892 ck3d = { 1887 1893 email = "ck3d@gmx.de"; 1888 1894 github = "ck3d";
+34
pkgs/applications/science/math/programmer-calculator/default.nix
··· 1 + { lib, gccStdenv, fetchFromGitHub, ncurses }: 2 + 3 + gccStdenv.mkDerivation rec { 4 + pname = "programmer-calculator"; 5 + version = "2.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "alt-romes"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "1vvpbj24ijl9ma0h669n9x0z1im3vqdf8zf2li0xf5h97b14gmv0"; 12 + }; 13 + 14 + buildInputs = [ ncurses ]; 15 + 16 + installPhase = '' 17 + runHook preInstall 18 + install -Dm 555 pcalc -t "$out/bin" 19 + runHook postInstall 20 + ''; 21 + 22 + meta = with lib; { 23 + description = "A terminal calculator for programmers"; 24 + longDescription = '' 25 + Terminal calculator made for programmers working with multiple number 26 + representations, sizes, and overall close to the bits 27 + ''; 28 + homepage = "https://alt-romes.github.io/programmer-calculator"; 29 + changelog = "https://github.com/alt-romes/programmer-calculator/releases/tag/v${version}"; 30 + license = licenses.gpl3Only; 31 + maintainers = with lib.maintainers; [ cjab ]; 32 + platforms = platforms.all; 33 + }; 34 + }
+2
pkgs/top-level/all-packages.nix
··· 30252 30252 30253 30253 pcalc = callPackage ../applications/science/math/pcalc { }; 30254 30254 30255 + programmer-calculator = callPackage ../applications/science/math/programmer-calculator { }; 30256 + 30255 30257 bcal = callPackage ../applications/science/math/bcal { }; 30256 30258 30257 30259 pspp = callPackage ../applications/science/math/pspp { };