blob: 4403f1cf1cca27d9fcf5c30a4dc81a9443185716 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
autoconf-archive,
installShellFiles,
libiconv,
}:
stdenv.mkDerivation rec {
pname = "libdatrie";
version = "2019-12-20";
outputs = [
"bin"
"out"
"lib"
"dev"
];
src = fetchFromGitHub {
owner = "tlwg";
repo = "libdatrie";
rev = "d1db08ac1c76f54ba23d63665437473788c999f3";
sha256 = "03dc363259iyiidrgadzc7i03mmfdj8h78j82vk6z53w6fxq5zxc";
};
nativeBuildInputs = [
autoreconfHook
autoconf-archive
installShellFiles
];
buildInputs = [ libiconv ];
preAutoreconf =
let
reports = "https://github.com/tlwg/libdatrie/issues";
in
''
sed -i -e "/AC_INIT/,+3d" configure.ac
sed -i "5iAC_INIT(${pname},${version},[${reports}])" configure.ac
'';
postInstall = ''
installManPage man/trietool.1
'';
meta = {
homepage = "https://linux.thai.net/~thep/datrie/datrie.html";
description = "This is an implementation of double-array structure for representing trie";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.unix;
maintainers = [ ];
pkgConfigModules = [ "datrie-0.2" ];
};
}
|