nixpkgs/pkgs/development/libraries/mythes/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

23 lines
615 B
Nix

{ lib, stdenv, fetchurl, hunspell, ncurses, pkg-config, perl }:
stdenv.mkDerivation rec {
pname = "mythes";
version = "1.2.4";
src = fetchurl {
url = "mirror://sourceforge/hunspell/mythes-${version}.tar.gz";
sha256 = "0prh19wy1c74kmzkkavm9qslk99gz8h8wmjvwzjc6lf8v2az708y";
};
buildInputs = [ hunspell ];
nativeBuildInputs = [ ncurses pkg-config perl ];
meta = {
homepage = "https://hunspell.sourceforge.net/";
description = "Thesaurus library from Hunspell project";
mainProgram = "th_gen_idx.pl";
license = lib.licenses.bsd3;
inherit (hunspell.meta) platforms;
};
}