at 23.11-beta 27 lines 786 B view raw
1{ lib, stdenv, fetchurl, perl, ... }: 2 3let 4 version = "2.8.8"; 5 folder = with builtins; 6 let parts = splitVersion version; 7 in concatStringsSep "." [ (elemAt parts 0) (elemAt parts 1) ]; 8in stdenv.mkDerivation rec { 9 pname = "hyphen"; 10 inherit version; 11 12 nativeBuildInputs = [ perl ]; 13 14 src = fetchurl { 15 url = 16 "https://sourceforge.net/projects/hunspell/files/Hyphen/${folder}/${pname}-${version}.tar.gz"; 17 sha256 = "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih"; 18 }; 19 20 meta = with lib; { 21 description = "A text hyphenation library"; 22 homepage = "https://sourceforge.net/projects/hunspell/files/Hyphen/"; 23 platforms = platforms.all; 24 license = with licenses; [ gpl2 lgpl21 mpl11 ]; 25 maintainers = with maintainers; [ Br1ght0ne ]; 26 }; 27}