Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, makeWrapper 2, autoreconfHook, autoconf-archive 3, installShellFiles, libiconv }: 4 5stdenv.mkDerivation rec { 6 7 pname = "libdatrie"; 8 version = "2019-12-20"; 9 10 outputs = [ "bin" "out" "lib" "dev" ]; 11 12 src = fetchFromGitHub { 13 owner = "tlwg"; 14 repo = "libdatrie"; 15 rev = "d1db08ac1c76f54ba23d63665437473788c999f3"; 16 sha256 = "03dc363259iyiidrgadzc7i03mmfdj8h78j82vk6z53w6fxq5zxc"; 17 }; 18 19 nativeBuildInputs = [ 20 autoreconfHook 21 autoconf-archive 22 installShellFiles 23 ]; 24 25 buildInputs = [ libiconv ]; 26 27 preAutoreconf = let 28 reports = "https://github.com/tlwg/libdatrie/issues"; 29 in 30 '' 31 sed -i -e "/AC_INIT/,+3d" configure.ac 32 sed -i "5iAC_INIT(${pname},${version},[${reports}])" configure.ac 33 ''; 34 35 postInstall = '' 36 installManPage man/trietool.1 37 ''; 38 39 meta = with lib; { 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; [ ]; 45 pkgConfigModules = [ "datrie-0.2" ]; 46 }; 47}