@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitHub, cmake, curl, fetchpatch }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "howard-hinnant-date-unstable";
5+ version = "2020-01-24";
6+
7+ src = fetchFromGitHub {
8+ owner = "HowardHinnant";
9+ repo = "date";
10+ rev = "9a0ee2542848ab8625984fc8cdbfb9b5414c0082";
11+ sha256 = "0yxsn0hj22n61bjywysxqgfv7hj5xvsl6isma95fl8xrimpny083";
12+ };
13+
14+ patches = [
15+ (fetchpatch {
16+ url = "https://github.com/HowardHinnant/date/commit/e56b2dce7e89a92e1b9b35caa13b3e938c4cedea.patch";
17+ sha256 = "0m3qbhq7kmm9qa3jm6d2px7c1dxdj5k9lffgdvqnrwmhxwj1p9n2";
18+ })
19+ ];
20+
21+ nativeBuildInputs = [ cmake ];
22+ buildInputs = [ curl ];
23+
24+ cmakeFlags = [
25+ "-DBUILD_TZ_LIB=true"
26+ "-DBUILD_SHARED_LIBS=true"
27+ ];
28+
29+ outputs = [ "out" "dev" ];
30+
31+ meta = with stdenv.lib; {
32+ license = licenses.mit;
33+ description = "A date and time library based on the C++11/14/17 <chrono> header";
34+ homepage = "https://github.com/HowardHinnant/date";
35+ platforms = platforms.linux;
36+ maintainers = with maintainers; [ ma27 ];
37+ };
38+}