nixpkgs/pkgs/tools/text/ispell/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, bison, ncurses }:
2014-07-19 13:37:08 +02:00
stdenv.mkDerivation rec {
2019-07-04 10:14:56 +02:00
pname = "ispell";
2021-08-07 03:56:05 +02:00
version = "3.4.04";
2019-07-04 10:14:56 +02:00
2014-07-19 13:37:08 +02:00
src = fetchurl {
2021-08-05 16:34:39 +02:00
url = "https://www.cs.hmc.edu/~geoff/tars/${pname}-${version}.tar.gz";
2021-08-07 03:56:05 +02:00
sha256 = "sha256-h7zW8FIdhaCjp4NCFZVtdOvEkxRMx8eR+HvmhyzP4T4=";
2014-07-19 13:37:08 +02:00
};
2019-07-04 10:14:56 +02:00
2014-07-19 13:37:08 +02:00
buildInputs = [ bison ncurses ];
2019-07-04 10:14:56 +02:00
2014-07-19 13:37:08 +02:00
postPatch = ''
cat >> local.h <<EOF
2021-01-15 10:19:50 +01:00
${lib.optionalString (!stdenv.isDarwin) "#define USG"}
2014-07-19 13:37:08 +02:00
#define TERMLIB "-lncurses"
#define LANGUAGES "{american,MASTERDICTS=american.med,HASHFILES=americanmed.hash}"
#define MASTERHASH "americanmed.hash"
#define BINDIR "$out/bin"
#define LIBDIR "$out/lib"
#define ELISPDIR "{$out}/share/emacs/site-lisp"
#define TEXINFODIR "$out/share/info"
#define MAN1DIR "$out/share/man/man1"
#define MAN4DIR "$out/share/man/man4"
#define MAN45DIR "$out/share/man/man5"
#define MINIMENU
#define HAS_RENAME
EOF
'';
2019-07-04 10:14:56 +02:00
meta = with lib; {
2019-07-04 10:14:56 +02:00
description = "An interactive spell-checking program for Unix";
homepage = "https://www.cs.hmc.edu/~geoff/ispell.html";
license = licenses.free;
platforms = platforms.unix;
};
2014-07-19 13:37:08 +02:00
}