diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2022-01-08 01:07:04 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-08 01:07:04 -0300 |
commit | b3bc6deb17db278ecdf3c13721524a7f528b8236 (patch) | |
tree | d755135c2de9f415fc129eebbe63a045c92e96f4 /pkgs/tools | |
parent | 1e1030d4dceda11068adfcc9af1c906ae795c303 (diff) | |
parent | d344124d64589911a63fb80b662cf68f7b8d069a (diff) |
Merge pull request #153938 from AndersonTorres/new-misc
Misc updates
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/dialog/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/misc/spigot/default.nix | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/tools/misc/dialog/default.nix b/pkgs/tools/misc/dialog/default.nix index e295f7c27ac34..3cbea01be8a71 100644 --- a/pkgs/tools/misc/dialog/default.nix +++ b/pkgs/tools/misc/dialog/default.nix @@ -8,7 +8,7 @@ }: assert withLibrary -> libtool != null; -assert unicodeSupport -> ncurses.unicode && ncurses != null; +assert unicodeSupport -> ncurses.unicodeSupport && ncurses != null; stdenv.mkDerivation rec { pname = "dialog"; diff --git a/pkgs/tools/misc/spigot/default.nix b/pkgs/tools/misc/spigot/default.nix index fbbae937a8d9a..b2abec09741d8 100644 --- a/pkgs/tools/misc/spigot/default.nix +++ b/pkgs/tools/misc/spigot/default.nix @@ -33,6 +33,17 @@ stdenv.mkDerivation rec { strictDeps = true; + doInstallCheck = true; + 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/"; description = "A command-line exact real calculator"; |