2020-07-15 13:07:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-01-07 13:47:47 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
2020-07-15 13:07:19 +00:00
|
|
|
, gmp
|
|
|
|
, halibut
|
2022-01-07 13:47:47 +00:00
|
|
|
, ncurses
|
2020-07-15 13:07:19 +00:00
|
|
|
, perl
|
|
|
|
}:
|
|
|
|
|
2023-07-30 02:03:11 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-07-15 13:07:19 +00:00
|
|
|
pname = "spigot";
|
2023-07-30 02:03:11 +00:00
|
|
|
version = "20220606.eb585f8";
|
2022-01-07 13:47:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-30 02:03:11 +00:00
|
|
|
url = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/spigot-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-JyNNZo/HUPWv5rYtlNYp8Hl0C7i3yxEyKm+77ysN7Ao=";
|
2020-07-15 13:07:19 +00:00
|
|
|
};
|
|
|
|
|
2022-01-07 13:47:47 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
halibut
|
|
|
|
perl
|
|
|
|
];
|
2020-07-15 13:07:19 +00:00
|
|
|
|
2022-01-07 13:47:47 +00:00
|
|
|
buildInputs = [
|
|
|
|
gmp
|
|
|
|
ncurses
|
|
|
|
];
|
2020-07-15 13:07:19 +00:00
|
|
|
|
2022-01-07 13:47:47 +00:00
|
|
|
outputs = [ "out" "man" ];
|
2020-07-15 13:07:19 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
2023-07-30 02:03:11 +00:00
|
|
|
meta = {
|
2020-07-15 13:07:19 +00:00
|
|
|
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/";
|
2022-01-07 13:47:47 +00:00
|
|
|
description = "A command-line exact real calculator";
|
2023-07-30 02:03:11 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-07-15 13:07:19 +00:00
|
|
|
};
|
2023-07-30 02:03:11 +00:00
|
|
|
})
|