1{ stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 version = "2.0.1";
5 name = "double-conversion-${version}";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = "double-conversion";
10 rev = "v${version}";
11 sha256 = "05x5rdwndgp1vdq2z1bpvng0dd8pn93kw4vhl6nsvv9vsara2q4b";
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}