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