about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/sp/spigot/tests/approximation.nix
blob: ffb329e6a317603df0f5ae782e24b54529363801 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib
, stdenv
, spigot
}:

stdenv.mkDerivation {
  pname = "spigot-approximation";
  inherit (spigot) version;

  nativeBuildInputs = [ spigot ];

  dontInstall = true;

  buildCommand = ''
    [ "$(spigot -b2 -d32 '(pi/1-355/113)')" = "-0.00000000000000000000010001111001" ]
    [ "$(spigot -b2 -d32 '(e/1-1457/536)')" = "-0.00000000000000000001110101101011" ]
    touch $out
  '';

  meta.timeout = 10;
}