1 { lib, stdenv, fetchFromGitHub, makeWrapper
2 , autoreconfHook, autoconf-archive
3 , installShellFiles, libiconv }:
5 stdenv.mkDerivation rec {
8 version = "2019-12-20";
10 outputs = [ "bin" "out" "lib" "dev" ];
12 src = fetchFromGitHub {
15 rev = "d1db08ac1c76f54ba23d63665437473788c999f3";
16 sha256 = "03dc363259iyiidrgadzc7i03mmfdj8h78j82vk6z53w6fxq5zxc";
25 buildInputs = lib.optional stdenv.isDarwin libiconv;
28 reports = "https://github.com/tlwg/libdatrie/issues";
31 sed -i -e "/AC_INIT/,+3d" configure.ac
32 sed -i "5iAC_INIT(${pname},${version},[${reports}])" configure.ac
36 installManPage man/trietool.1
40 homepage = "https://linux.thai.net/~thep/datrie/datrie.html";
41 description = "This is an implementation of double-array structure for representing trie";
42 license = licenses.lgpl21Plus;
43 platforms = platforms.unix;
44 maintainers = with maintainers; [ SuperSandro2000 ];