2020-01-03 08:44:23 -08:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake }:
|
2014-10-15 08:04:12 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "double-conversion";
|
2019-06-01 05:40:18 -07:00
|
|
|
version = "3.1.5";
|
2014-10-15 08:04:12 -07:00
|
|
|
|
2015-02-02 09:27:37 -08:00
|
|
|
src = fetchFromGitHub {
|
2015-05-18 07:01:06 -07:00
|
|
|
owner = "google";
|
2015-02-02 09:27:37 -08:00
|
|
|
repo = "double-conversion";
|
|
|
|
rev = "v${version}";
|
2019-06-01 05:40:18 -07:00
|
|
|
sha256 = "0csy4pjw1p8rp6g5qxi2h0ychhhp1fldv7gb761627fs2mclw9gv";
|
2014-10-15 08:04:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-01-03 08:44:23 -08:00
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
|
2014-10-15 08:04:12 -07:00
|
|
|
|
2018-03-09 05:34:55 -08:00
|
|
|
# Case sensitivity issue
|
|
|
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
|
|
|
rm BUILD
|
|
|
|
'';
|
|
|
|
|
2014-10-15 08:04:12 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Binary-decimal and decimal-binary routines for IEEE doubles";
|
2019-12-16 01:59:36 -08:00
|
|
|
homepage = "https://github.com/google/double-conversion";
|
2014-10-15 08:04:12 -07:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2015-05-14 10:09:10 -07:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-10-15 08:04:12 -07:00
|
|
|
};
|
|
|
|
}
|