hyphen: 2.8.8 -> 2.8.9, switch to github (#523638)

This commit is contained in:
dotlambda 2026-06-01 21:39:04 +00:00 committed by GitHub
commit 74002bc19e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,33 +1,31 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
autoreconfHook,
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 {
stdenv.mkDerivation (finalAttrs: {
pname = "hyphen";
inherit version;
version = "2.8.9";
nativeBuildInputs = [ perl ];
nativeBuildInputs = [
autoreconfHook
perl
];
src = fetchurl {
url = "https://sourceforge.net/projects/hunspell/files/Hyphen/${folder}/${pname}-${version}.tar.gz";
sha256 = "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih";
strictDeps = true;
src = fetchFromGitHub {
owner = "hunspell";
repo = "hyphen";
tag = "v${finalAttrs.version}";
hash = "sha256-F7PJQjEiE5t5i1gi5B8wzrwAJQl8FWzopRA8uDsaZBc=";
};
enableParallelBuilding = true;
# Do not install the en_US dictionary.
installPhase = ''
runHook preInstall
@ -36,14 +34,15 @@ stdenv.mkDerivation rec {
make install-includeHEADERS
# license
install -D -m644 COPYING "$out/share/licenses/${pname}/LICENSE"
install -D -m644 COPYING "$out/share/licenses/hyphen/LICENSE"
runHook postInstall
'';
meta = {
changelog = "https://github.com/hunspell/hyphen/blob/${finalAttrs.src.tag}/NEWS";
description = "Text hyphenation library";
mainProgram = "substrings.pl";
homepage = "https://sourceforge.net/projects/hunspell/files/Hyphen/";
homepage = "https://github.com/hunspell/hyphen";
platforms = lib.platforms.all;
license = with lib.licenses; [
gpl2
@ -51,4 +50,4 @@ stdenv.mkDerivation rec {
mpl11
];
};
}
})