forked from mirrors/nixpkgs
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, autoreconfHook, intltool
|
|
, gtk, pkgconfig, flex }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "galculator";
|
|
version = "2.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "galculator";
|
|
repo = "galculator";
|
|
rev = "v${version}";
|
|
sha256 = "0q0hb62f266709ncyq96bpx4a40a1i6dc5869byvd7x285sx1c2w";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkgconfig ];
|
|
buildInputs = [ gtk flex ];
|
|
|
|
meta = with lib; {
|
|
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
|
|
'';
|
|
homepage = "http://galculator.sourceforge.net/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|