2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchgit, bison, flex }:
|
2014-09-19 12:30:42 +01:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2014-09-19 12:30:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pcalc";
|
2015-03-24 17:27:42 +00:00
|
|
|
version = "20141224";
|
2014-09-19 12:30:42 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "git://git.code.sf.net/p/pcalc/code";
|
2015-03-24 17:27:42 +00:00
|
|
|
rev = "181d60d3c880da4344fef7138065943eb3b9255f";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1hd5bh20j5xzvv6qa0fmzmv0h8sf38r7zgi7y0b6nk17pjq33v90";
|
2014-09-19 12:30:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ];
|
2020-01-06 11:09:51 +00:00
|
|
|
buildInputs = [ bison flex ];
|
2014-09-19 12:30:42 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://pcalc.sourceforge.net/";
|
2014-09-19 12:30:42 +01:00
|
|
|
description = "Programmer's calculator";
|
|
|
|
license = licenses.gpl2;
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = with lib.maintainers; [ ftrvxmtrx ];
|
|
|
|
platforms = lib.platforms.linux;
|
2014-09-19 12:30:42 +01:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|