calc: init at 2.12.5.3
This commit is contained in:
parent
b16dc8dcc5
commit
1fb998f6c6
45
pkgs/applications/science/math/calc/default.nix
Normal file
45
pkgs/applications/science/math/calc/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{ stdenv, fetchurl, makeWrapper, glibc, readline, ncurses, groff, utillinux }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
let
|
||||||
|
makeFlags = ''
|
||||||
|
INCDIR=${glibc}/include \
|
||||||
|
BINDIR=$out/bin LIBDIR=$out/lib CALC_INCDIR=$out/include/calc CALC_SHAREDIR=$out/share/calc MANDIR=$out/share/man/man1 \
|
||||||
|
USE_READLINE=-DUSE_READLINE READLINE_LIB=-lreadline READLINE_EXTRAS='-lhistory -lncurses' \
|
||||||
|
TERMCONTROL=-DUSE_TERMIOS \
|
||||||
|
NROFF=groff
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
|
name = "calc-${version}";
|
||||||
|
version = "2.12.5.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/calc/${name}.tar.bz2";
|
||||||
|
sha256 = "14mnz6smhi3a0rgmwvddk9w3vdisi8khq67i8nqsl47vgs8n1kqg";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper readline ncurses groff utillinux ];
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
sed -i 's/all: check_include/all:/' Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
make ${makeFlags}
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
make install ${makeFlags}
|
||||||
|
wrapProgram $out/bin/calc --prefix LD_LIBRARY_PATH : $out/lib
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "C-style arbitrary precision calculator";
|
||||||
|
homepage = http://www.isthe.com/chongo/tech/comp/calc/;
|
||||||
|
license = licenses.lgpl21;
|
||||||
|
maintainers = [ ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
|
@ -15525,6 +15525,8 @@ let
|
||||||
|
|
||||||
pari = callPackage ../applications/science/math/pari {};
|
pari = callPackage ../applications/science/math/pari {};
|
||||||
|
|
||||||
|
calc = callPackage ../applications/science/math/calc { };
|
||||||
|
|
||||||
pcalc = callPackage ../applications/science/math/pcalc { };
|
pcalc = callPackage ../applications/science/math/pcalc { };
|
||||||
|
|
||||||
pspp = callPackage ../applications/science/math/pssp {
|
pspp = callPackage ../applications/science/math/pssp {
|
||||||
|
|
Loading…
Reference in a new issue