1{ stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 name = "double-conversion-${version}";
5 version = "3.0.0";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = "double-conversion";
10 rev = "v${version}";
11 sha256 = "05m78wlwrg310mxh1cl3d8d0ishzfvzh84x64xmvng252m0vc8yz";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
17
18 enableParallelBuilding = true;
19
20 meta = with stdenv.lib; {
21 description = "Binary-decimal and decimal-binary routines for IEEE doubles";
22 homepage = https://github.com/google/double-conversion;
23 license = licenses.bsd3;
24 platforms = platforms.unix;
25 maintainers = with maintainers; [ abbradar ];
26 };
27}