2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
2021-01-05 17:05:55 +00:00
|
|
|
, autoreconfHook, autoconf-archive
|
|
|
|
, installShellFiles, libiconv }:
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
pname = "libdatrie";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "2019-12-20";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
outputs = [ "bin" "out" "lib" "dev" ];
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tlwg";
|
|
|
|
repo = "libdatrie";
|
|
|
|
rev = "d1db08ac1c76f54ba23d63665437473788c999f3";
|
|
|
|
sha256 = "03dc363259iyiidrgadzc7i03mmfdj8h78j82vk6z53w6fxq5zxc";
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
autoconf-archive
|
|
|
|
installShellFiles
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
buildInputs = [ libiconv ];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage man/trietool.1
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-12 09:05:59 +00:00
|
|
|
homepage = "https://linux.thai.net/~thep/datrie/datrie.html";
|
|
|
|
description = "This is an implementation of double-array structure for representing trie";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.unix;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-08-10 07:59:29 +00:00
|
|
|
pkgConfigModules = [ "datrie-0.2" ];
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
}
|