mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
hyphen: 2.8.8 -> 2.8.9, switch to github (#523638)
This commit is contained in:
commit
74002bc19e
1 changed files with 21 additions and 22 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue