+46
pkgs/development/libraries/hfst-ospell/default.nix
+46
pkgs/development/libraries/hfst-ospell/default.nix
···
···
1
+
{ lib
2
+
, stdenv
3
+
, autoreconfHook
4
+
, fetchFromGitHub
5
+
, icu
6
+
, libarchive
7
+
, pkg-config
8
+
}:
9
+
10
+
stdenv.mkDerivation (finalAttrs: {
11
+
pname = "hfst-ospell";
12
+
version = "0.5.3";
13
+
14
+
src = fetchFromGitHub {
15
+
owner = "hfst";
16
+
repo = "hfst-ospell";
17
+
rev = "refs/tags/v${finalAttrs.version}";
18
+
hash = "sha256-16H1nbAIe+G71+TnlLG0WnH9LktZwmc0d0O+oYduH1k=";
19
+
};
20
+
21
+
buildInputs = [
22
+
icu
23
+
libarchive
24
+
];
25
+
26
+
nativeBuildInputs = [
27
+
autoreconfHook
28
+
pkg-config
29
+
];
30
+
31
+
# libxmlxx is listed as a dependency but Darwin build fails with it,
32
+
# might also be better in general since libxmlxx in Nixpkgs is 8 years old
33
+
# https://github.com/hfst/hfst-ospell/issues/48#issuecomment-546535653
34
+
configureFlags = [
35
+
"--without-libxmlpp"
36
+
"--without-tinyxml2"
37
+
];
38
+
39
+
meta = with lib; {
40
+
homepage = "https://github.com/hfst/hfst-ospell/";
41
+
description = "HFST spell checker library and command line tool ";
42
+
license = licenses.asl20;
43
+
maintainers = with maintainers; [ lurkki ];
44
+
platforms = platforms.unix;
45
+
};
46
+
})
+2
-2
pkgs/top-level/all-packages.nix
+2
-2
pkgs/top-level/all-packages.nix