Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
gccStdenv,
|
|
fetchFromGitHub,
|
|
ncurses,
|
|
}:
|
|
|
|
gccStdenv.mkDerivation rec {
|
|
pname = "programmer-calculator";
|
|
version = "3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alt-romes";
|
|
repo = "programmer-calculator";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9mv8Jac6j3fKWLLCu1Bd/T5dbegUB8rRgsj9MaQhFDw=";
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm 555 pcalc -t "$out/bin"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Terminal calculator for programmers";
|
|
mainProgram = "pcalc";
|
|
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 = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ cjab ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|