lol
1{ lib, stdenv, fetchFromGitHub
2, autoreconfHook, intltool
3, gtk, pkg-config, flex }:
4
5stdenv.mkDerivation rec {
6 pname = "galculator";
7 version = "2.1.4";
8
9 src = fetchFromGitHub {
10 owner = "galculator";
11 repo = "galculator";
12 rev = "v${version}";
13 sha256 = "0q0hb62f266709ncyq96bpx4a40a1i6dc5869byvd7x285sx1c2w";
14 };
15
16 nativeBuildInputs = [ autoreconfHook intltool pkg-config ];
17 buildInputs = [ gtk flex ];
18
19 meta = with lib; {
20 description = "A GTK 2/3 algebraic and RPN calculator";
21 longDescription = ''
22 galculator is a GTK 2 / GTK 3 based calculator. Its main features include:
23
24 - Algebraic, RPN (Reverse Polish Notation), Formula Entry and Paper modes;
25 - Basic and Scientific Modes
26 - Decimal, hexadecimal, octal and binary number base
27 - Radiant, degree and grad support
28 - User defined constants and functions
29 - A bunch of common functions
30 - Binary arithmetic of configurable bit length and signedness
31 - Quad-precision floating point arithmetic, and 112-bit binary arithmetic
32 '';
33 homepage = "http://galculator.sourceforge.net/";
34 license = licenses.gpl2Plus;
35 maintainers = [ maintainers.AndersonTorres ];
36 platforms = platforms.linux;
37 };
38}