2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, bison, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ispell";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "3.4.05";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-06 21:57:35 +00:00
|
|
|
url = "https://www.cs.hmc.edu/~geoff/tars/${pname}-${version}.tar.gz";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-zwxt7eP9JfraQ3XYasr+WDy5bY/lRt50apLrtt+JVgI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ bison ncurses ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cat >> local.h <<EOF
|
2021-01-15 22:18:51 +00:00
|
|
|
${lib.optionalString (!stdenv.isDarwin) "#define USG"}
|
2020-04-24 23:36:52 +00: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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An interactive spell-checking program for Unix";
|
|
|
|
homepage = "https://www.cs.hmc.edu/~geoff/ispell.html";
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|