567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
perl,
|
|
}:
|
|
|
|
let
|
|
version = "2.8.8";
|
|
folder =
|
|
with builtins;
|
|
let
|
|
parts = splitVersion version;
|
|
in
|
|
concatStringsSep "." [
|
|
(elemAt parts 0)
|
|
(elemAt parts 1)
|
|
];
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "hyphen";
|
|
inherit version;
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
src = fetchurl {
|
|
url = "https://sourceforge.net/projects/hunspell/files/Hyphen/${folder}/${pname}-${version}.tar.gz";
|
|
sha256 = "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih";
|
|
};
|
|
|
|
# Do not install the en_US dictionary.
|
|
installPhase = ''
|
|
runHook preInstall
|
|
make install-libLTLIBRARIES
|
|
make install-binSCRIPTS
|
|
make install-includeHEADERS
|
|
|
|
# license
|
|
install -D -m644 COPYING "$out/share/licenses/${pname}/LICENSE"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Text hyphenation library";
|
|
mainProgram = "substrings.pl";
|
|
homepage = "https://sourceforge.net/projects/hunspell/files/Hyphen/";
|
|
platforms = lib.platforms.all;
|
|
license = with lib.licenses; [
|
|
gpl2
|
|
lgpl21
|
|
mpl11
|
|
];
|
|
};
|
|
}
|