3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/math/programmer-calculator/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
976 B
Nix
Raw Normal View History

2021-06-18 14:32:24 +01:00
{ lib, gccStdenv, fetchFromGitHub, ncurses }:
gccStdenv.mkDerivation rec {
pname = "programmer-calculator";
2021-11-27 04:19:39 +00:00
version = "2.2";
2021-06-18 14:32:24 +01:00
src = fetchFromGitHub {
owner = "alt-romes";
repo = pname;
rev = "v${version}";
2021-11-27 04:19:39 +00:00
sha256 = "sha256-JQcYCYKdjdy8U2XMFzqTH9kAQ7CFv0r+sC1YfuAm7p8=";
2021-06-18 14:32:24 +01:00
};
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;
};
}