depot/third_party/nixpkgs/pkgs/by-name/sp/spigot/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

50 lines
958 B
Nix

{ lib
, stdenv
, fetchurl
, callPackage
, cmake
, gmp
, halibut
, ncurses
, perl
}:
stdenv.mkDerivation (finalAttrs: {
pname = "spigot";
version = "20220606.eb585f8";
src = fetchurl {
url = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/spigot-${finalAttrs.version}.tar.gz";
hash = "sha256-JyNNZo/HUPWv5rYtlNYp8Hl0C7i3yxEyKm+77ysN7Ao=";
};
nativeBuildInputs = [
cmake
halibut
perl
];
buildInputs = [
gmp
ncurses
];
outputs = [ "out" "man" ];
strictDeps = true;
passthru.tests = {
approximation = callPackage ./tests/approximation.nix {
spigot = finalAttrs.finalPackage;
};
};
meta = {
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/";
description = "Command-line exact real calculator";
mainProgram = "spigot";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
};
})