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";
|
|
|
|
license = licenses.gpl2;
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = with lib.maintainers; [ ftrvxmtrx ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|