aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/misc/spigot/default.nix
blob: 8321d03a48f4b59ce44de2c94f17969cb3f4cc1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, stdenv
, buildPackages
, fetchgit
, autoreconfHook
, gmp
, ncurses
, halibut
, perl
}:

stdenv.mkDerivation rec {
  pname = "spigot";
  version = "20200901";
  src = fetchgit {
    url = "https://git.tartarus.org/simon/spigot.git";
    rev = "9910e5bdc203bae6b7bbe1ed4a93f13755c1cae";
    sha256 = "1az6v9gk0g2k197lr288nmr9jv20bvgc508vn9ic3v7mav7hf5bf";
  };

  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/";
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.all;
    maintainers = with maintainers; [ mcbeth ];
  };
}