2020-07-15 14:07:19 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPackages
|
|
|
|
, fetchgit
|
|
|
|
, autoreconfHook
|
|
|
|
, gmp
|
|
|
|
, ncurses
|
|
|
|
, halibut
|
|
|
|
, perl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spigot";
|
2020-12-01 16:31:16 +00:00
|
|
|
version = "20200901";
|
2020-07-15 14:07:19 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.tartarus.org/simon/spigot.git";
|
2020-12-01 16:31:16 +00:00
|
|
|
rev = "9910e5bdc203bae6b7bbe1ed4a93f13755c1cae";
|
|
|
|
sha256 = "1az6v9gk0g2k197lr288nmr9jv20bvgc508vn9ic3v7mav7hf5bf";
|
2020-07-15 14:07:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook halibut perl ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-gmp" ];
|
|
|
|
|
|
|
|
buildInputs = [ gmp ncurses ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command-line exact real calculator";
|
|
|
|
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.all;
|
2020-07-15 14:07:19 +01:00
|
|
|
maintainers = with maintainers; [ mcbeth ];
|
|
|
|
};
|
|
|
|
}
|