c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
30 lines
785 B
Nix
30 lines
785 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "double-conversion";
|
|
version = "3.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "double-conversion";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-DkMoHHoHwV4p40IINEqEPzKsCa0LHrJAFw2Yftw7zHo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
|
|
|
|
# Case sensitivity issue
|
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
|
rm BUILD
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Binary-decimal and decimal-binary routines for IEEE doubles";
|
|
homepage = "https://github.com/google/double-conversion";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix ++ platforms.windows;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|