2015-02-02 18:27:37 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2014-10-15 17:04:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-02-02 18:27:37 +01:00
|
|
|
name = "double-conversion-${version}";
|
2018-02-25 18:03:44 +01:00
|
|
|
version = "3.0.0";
|
2014-10-15 17:04:12 +02:00
|
|
|
|
2015-02-02 18:27:37 +01:00
|
|
|
src = fetchFromGitHub {
|
2015-05-18 16:01:06 +02:00
|
|
|
owner = "google";
|
2015-02-02 18:27:37 +01:00
|
|
|
repo = "double-conversion";
|
|
|
|
rev = "v${version}";
|
2018-02-25 18:03:44 +01:00
|
|
|
sha256 = "05m78wlwrg310mxh1cl3d8d0ishzfvzh84x64xmvng252m0vc8yz";
|
2014-10-15 17:04:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Binary-decimal and decimal-binary routines for IEEE doubles";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/google/double-conversion;
|
2014-10-15 17:04:12 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2015-05-14 19:09:10 +02:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-10-15 17:04:12 +02:00
|
|
|
};
|
|
|
|
}
|