2017-03-23 16:00:32 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, autoreconfHook, intltool
|
|
|
|
, gtk, pkgconfig, flex }:
|
2014-05-24 18:19:47 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "galculator";
|
2017-03-23 16:00:32 +01:00
|
|
|
version = "2.1.4";
|
2014-05-24 18:19:47 +02:00
|
|
|
|
2017-03-23 16:00:32 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "galculator";
|
|
|
|
repo = "galculator";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0q0hb62f266709ncyq96bpx4a40a1i6dc5869byvd7x285sx1c2w";
|
2014-05-24 18:19:47 +02:00
|
|
|
};
|
|
|
|
|
2017-03-23 16:00:32 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkgconfig ];
|
|
|
|
buildInputs = [ gtk flex ];
|
2014-05-24 18:19:47 +02:00
|
|
|
|
2014-09-10 20:59:54 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-24 18:19:47 +02:00
|
|
|
description = "A GTK 2/3 algebraic and RPN calculator";
|
|
|
|
longDescription = ''
|
|
|
|
galculator is a GTK 2 / GTK 3 based calculator. Its main features include:
|
|
|
|
|
|
|
|
- Algebraic, RPN (Reverse Polish Notation), Formula Entry and Paper modes;
|
|
|
|
- Basic and Scientific Modes
|
|
|
|
- Decimal, hexadecimal, octal and binary number base
|
|
|
|
- Radiant, degree and grad support
|
|
|
|
- User defined constants and functions
|
|
|
|
- A bunch of common functions
|
|
|
|
- Binary arithmetic of configurable bit length and signedness
|
|
|
|
- Quad-precision floating point arithmetic, and 112-bit binary arithmetic
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://galculator.sourceforge.net/";
|
2014-09-10 20:59:54 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2014-05-24 18:19:47 +02:00
|
|
|
};
|
|
|
|
}
|