2023-12-10 23:26:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch,
|
2023-12-11 00:03:23 +00:00
|
|
|
tzdata,
|
2023-12-10 23:26:18 +00:00
|
|
|
autoreconfHook,
|
|
|
|
openssl,
|
|
|
|
}:
|
2016-08-16 12:21:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cxxtools";
|
2023-12-10 23:26:18 +00:00
|
|
|
version = "3.0";
|
2016-08-16 12:21:05 +00:00
|
|
|
|
2023-12-10 23:26:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maekitalo";
|
|
|
|
repo = "cxxtools";
|
|
|
|
rev = "V${version}";
|
|
|
|
hash = "sha256-AiMVmtvI20nyv/nuHHxGH4xFnlc9AagVkKlnRlaYCPM=";
|
2016-08-16 12:21:05 +00:00
|
|
|
};
|
|
|
|
|
2023-12-10 23:26:18 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/maekitalo/cxxtools/commit/b773c01fc13d2ae67abc0839888e383be23562fd.patch";
|
|
|
|
hash = "sha256-9yRkD+vMRhc4n/Xh6SKtmllBrmfDx3IBVOtHQV6s7Tw=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/maekitalo/cxxtools/commit/6e1439a108ce3892428e95f341f2d23ae32a590e.patch";
|
|
|
|
hash = "sha256-ZnlbdWBjL9lEtNLEF/ZPa0IzvJ7i4xWI4GbY8KeA6A4=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-12-11 00:03:23 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/tz.cpp \
|
|
|
|
--replace '::getenv("TZDIR")' '"${tzdata}/share/zoneinfo"'
|
|
|
|
'';
|
|
|
|
|
2023-12-10 23:26:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
];
|
2021-11-14 22:30:11 +00:00
|
|
|
|
2016-08-16 12:21:05 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.tntnet.org/cxxtools.html";
|
2016-08-16 12:21:05 +00:00
|
|
|
description = "Comprehensive C++ class library for Unix and Linux";
|
2023-12-10 23:26:18 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = [ lib.maintainers.juliendehos ];
|
2016-08-16 12:21:05 +00:00
|
|
|
};
|
|
|
|
}
|