1 { lib, stdenv, fetchFromGitHub, bison, flex }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "d93be9e19ecc0b2674cf00ec91cbb79d32ccb01d";
11 sha256 = "sha256-m4xdsEJGKxLgp/d5ipxQ+cKG3z7rlvpPL6hELnDu6Hk=";
14 makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ];
15 nativeBuildInputs = [ bison flex ];
17 enableParallelBuilding = true;
20 homepage = "https://vapier.github.io/pcalc/";
21 description = "Programmer's calculator";
22 mainProgram = "pcalc";
23 license = licenses.gpl2Plus;
24 maintainers = with maintainers; [ ftrvxmtrx ];
25 platforms = platforms.unix;