mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
bb890c4561
pkgsStatic.double-conversion already has CMAKE_BUILD_SHARED set to OFF.
33 lines
806 B
Nix
33 lines
806 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "double-conversion";
|
|
version = "3.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "double-conversion";
|
|
rev = "v${version}";
|
|
sha256 = "0csy4pjw1p8rp6g5qxi2h0ychhhp1fldv7gb761627fs2mclw9gv";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
|
|
|
|
# Case sensitivity issue
|
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
|
rm BUILD
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Binary-decimal and decimal-binary routines for IEEE doubles";
|
|
homepage = "https://github.com/google/double-conversion";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|