Files
nixpkgs/pkgs/development/libraries/hyphen/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 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 = with lib; {
description = "Text hyphenation library";
mainProgram = "substrings.pl";
homepage = "https://sourceforge.net/projects/hunspell/files/Hyphen/";
platforms = platforms.all;
license = with licenses; [
gpl2
lgpl21
mpl11
];
maintainers = with maintainers; [ Br1ght0ne ];
};
}