mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
51 lines
958 B
Nix
51 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;
|
|
};
|
|
})
|