mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
35 lines
976 B
Nix
35 lines
976 B
Nix
{ lib, gccStdenv, fetchFromGitHub, ncurses }:
|
|
|
|
gccStdenv.mkDerivation rec {
|
|
pname = "programmer-calculator";
|
|
version = "3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alt-romes";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9mv8Jac6j3fKWLLCu1Bd/T5dbegUB8rRgsj9MaQhFDw=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|