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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, bison, ncurses }:
2014-07-19 11:37:08 +00:00
stdenv.mkDerivation rec {
2019-07-04 08:14:56 +00:00
pname = "ispell";
2022-03-12 16:38:50 +00:00
version = "3.4.05";
2019-07-04 08:14:56 +00:00
2014-07-19 11:37:08 +00:00
src = fetchurl {
2021-08-05 14:34:39 +00:00
url = "https://www.cs.hmc.edu/~geoff/tars/${pname}-${version}.tar.gz";
2022-03-12 16:38:50 +00:00
sha256 = "sha256-zwxt7eP9JfraQ3XYasr+WDy5bY/lRt50apLrtt+JVgI=";
2014-07-19 11:37:08 +00:00
};
2019-07-04 08:14:56 +00:00
2014-07-19 11:37:08 +00:00
buildInputs = [ bison ncurses ];
2019-07-04 08:14:56 +00:00
2014-07-19 11:37:08 +00:00
postPatch = ''
cat >> local.h <<EOF
2021-01-15 09:19:50 +00:00
${lib.optionalString (!stdenv.isDarwin) "#define USG"}
2014-07-19 11:37:08 +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
'';
2019-07-04 08:14:56 +00:00
meta = with lib; {
2019-07-04 08:14:56 +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;
};
2014-07-19 11:37:08 +00:00
}