uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
65
pkgs/development/libraries/hunspell/default.nix
Normal file
65
pkgs/development/libraries/hunspell/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, ncurses, readline, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.7.0";
|
||||
pname = "hunspell";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hunspell";
|
||||
repo = "hunspell";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-YSJztik0QTZFNR8k8Xu1hakyE16NziDavYVkEUCbtGM=";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "dev" "out" "man" ];
|
||||
|
||||
buildInputs = [ ncurses readline ];
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
patches = [
|
||||
./0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch
|
||||
(fetchpatch {
|
||||
name = "CVE-2019-16707.patch";
|
||||
url = "https://github.com/hunspell/hunspell/commit/ac938e2ecb48ab4dd21298126c7921689d60571b.patch";
|
||||
sha256 = "0bwfksz87iy7ikx3fb54zd5ww169qfm9kl076hsch3cs8p30s8az";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs tests
|
||||
'';
|
||||
|
||||
autoreconfFlags = "-vfi";
|
||||
|
||||
configureFlags = [ "--with-ui" "--with-readline" ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://hunspell.sourceforge.net";
|
||||
description = "Spell checker";
|
||||
longDescription = ''
|
||||
Hunspell is the spell checker of LibreOffice, OpenOffice.org, Mozilla
|
||||
Firefox 3 & Thunderbird, Google Chrome, and it is also used by
|
||||
proprietary software packages, like macOS, InDesign, memoQ, Opera and
|
||||
SDL Trados.
|
||||
|
||||
Main features:
|
||||
|
||||
* Extended support for language peculiarities; Unicode character encoding, compounding and complex morphology.
|
||||
* Improved suggestion using n-gram similarity, rule and dictionary based pronunciation data.
|
||||
* Morphological analysis, stemming and generation.
|
||||
* Hunspell is based on MySpell and works also with MySpell dictionaries.
|
||||
* C++ library under GPL/LGPL/MPL tri-license.
|
||||
* Interfaces and ports:
|
||||
* Enchant (Generic spelling library from the Abiword project),
|
||||
* XSpell (macOS port, but Hunspell is part of the macOS from version 10.6 (Snow Leopard), and
|
||||
now it is enough to place Hunspell dictionary files into
|
||||
~/Library/Spelling or /Library/Spelling for spell checking),
|
||||
* Delphi, Java (JNA, JNI), Perl, .NET, Python, Ruby ([1], [2]), UNO.
|
||||
'';
|
||||
platforms = platforms.all;
|
||||
license = with licenses; [ gpl2 lgpl21 mpl11 ];
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue