2021-07-18 21:22:44 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, bison, flex }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pcalc";
|
2021-07-18 21:22:44 +00:00
|
|
|
version = "20181202";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vapier";
|
|
|
|
repo = "pcalc";
|
|
|
|
rev = "d93be9e19ecc0b2674cf00ec91cbb79d32ccb01d";
|
|
|
|
sha256 = "sha256-m4xdsEJGKxLgp/d5ipxQ+cKG3z7rlvpPL6hELnDu6Hk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ];
|
2021-07-18 21:22:44 +00:00
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://vapier.github.io/pcalc/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Programmer's calculator";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pcalc";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ ftrvxmtrx ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|