spigot: 20210527 -> 20220606.eb585f8

This commit is contained in:
Anderson Torres 2023-07-29 23:03:11 -03:00
parent d3a6adc9b6
commit a865d875b8

View file

@ -8,14 +8,13 @@
, perl , perl
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "spigot"; pname = "spigot";
version = "20210527"; version = "20220606.eb585f8";
srcVersion = "20210527.7dd3cfd";
src = fetchurl { src = fetchurl {
url = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/${pname}-${srcVersion}.tar.gz"; url = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/spigot-${finalAttrs.version}.tar.gz";
hash = "sha256-EBS3lgfLtsyBQ8mzoJPyZhRBJNmkVSeF5XecGgcvqtw="; hash = "sha256-JyNNZo/HUPWv5rYtlNYp8Hl0C7i3yxEyKm+77ysN7Ao=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -33,22 +32,11 @@ stdenv.mkDerivation rec {
strictDeps = true; strictDeps = true;
doInstallCheck = true; meta = {
installCheckPhase = ''
runHook preInstallCheck
[ `$out/bin/spigot -b 10 -d 10 e` == "2.7182818284" ] || exit 1
[ `$out/bin/spigot -b 10 -d 10 pi` == "3.1415926535" ] || exit 1
[ `$out/bin/spigot -b 10 -d 10 sqrt\(2\)` == "1.4142135623" ] || exit 1
runHook postInstallCheck
'';
meta = with lib; {
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/"; homepage = "https://www.chiark.greenend.org.uk/~sgtatham/spigot/";
description = "A command-line exact real calculator"; description = "A command-line exact real calculator";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ AndersonTorres mcbeth ]; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
} })