2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, zlib }:
|
2014-11-15 05:53:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-16 01:58:52 +01:00
|
|
|
pname = "kyotocabinet";
|
|
|
|
version = "1.2.79";
|
2014-11-15 05:53:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-16 01:58:52 +01:00
|
|
|
url = "https://dbmx.net/kyotocabinet/pkg/kyotocabinet-${version}.tar.gz";
|
|
|
|
sha256 = "079ymsahlrijswgwfr2la9yw5h57l752cprhp5dz31iamsj1vyv7";
|
2014-11-15 05:53:33 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
2015-07-23 23:47:16 +01:00
|
|
|
substituteInPlace kccommon.h \
|
|
|
|
--replace tr1/unordered_map unordered_map \
|
|
|
|
--replace tr1/unordered_set unordered_set \
|
|
|
|
--replace tr1::hash std::hash \
|
|
|
|
--replace tr1::unordered_map std::unordered_map \
|
|
|
|
--replace tr1::unordered_set std::unordered_set
|
|
|
|
|
|
|
|
substituteInPlace lab/kcdict/Makefile --replace stdc++ c++
|
2017-09-12 21:03:08 +01:00
|
|
|
substituteInPlace configure \
|
|
|
|
--replace /usr/local/bin:/usr/local/sbin: "" \
|
|
|
|
--replace /usr/bin:/usr/sbin: "" \
|
|
|
|
--replace /bin:/sbin: "" \
|
|
|
|
--replace stdc++ c++
|
2015-07-23 23:47:16 +01:00
|
|
|
'';
|
|
|
|
|
2014-11-15 05:53:33 +00:00
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2021-06-16 01:58:52 +01:00
|
|
|
homepage = "https://dbmx.net/kyotocabinet";
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A library of routines for managing a database";
|
2021-06-16 01:58:52 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2014-11-15 05:53:33 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|