nixpkgs/pkgs/development/libraries/double-conversion/default.nix

31 lines
764 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, cmake }:
2014-10-15 15:04:12 +00:00
stdenv.mkDerivation rec {
pname = "double-conversion";
2021-12-06 15:35:11 +00:00
version = "3.1.6";
2014-10-15 15:04:12 +00:00
2015-02-02 17:27:37 +00:00
src = fetchFromGitHub {
2015-05-18 14:01:06 +00:00
owner = "google";
2015-02-02 17:27:37 +00:00
repo = "double-conversion";
rev = "v${version}";
2021-12-06 15:35:11 +00:00
sha256 = "sha256-Tg8hndib4EYSYDuEYVssv15w4pQyW5Jk+MwGJWOVQXE=";
2014-10-15 15:04:12 +00:00
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
2014-10-15 15:04:12 +00:00
# Case sensitivity issue
preConfigure = lib.optionalString stdenv.isDarwin ''
rm BUILD
'';
meta = with lib; {
2014-10-15 15:04:12 +00:00
description = "Binary-decimal and decimal-binary routines for IEEE doubles";
homepage = "https://github.com/google/double-conversion";
2014-10-15 15:04:12 +00:00
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ abbradar ];
2014-10-15 15:04:12 +00:00
};
}