programmer-calculator: init at 2.1

+36
+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
··· 30173 30173 30174 30174 pcalc = callPackage ../applications/science/math/pcalc { }; 30175 30175 30176 + programmer-calculator = callPackage ../applications/science/math/programmer-calculator { }; 30177 + 30176 30178 bcal = callPackage ../applications/science/math/bcal { }; 30177 30179 30178 30180 pspp = callPackage ../applications/science/math/pspp { };