3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/double-conversion/default.nix

28 lines
711 B
Nix
Raw Normal View History

2015-02-02 17:27:37 +00:00
{ stdenv, fetchFromGitHub, cmake }:
2014-10-15 16:04:12 +01:00
stdenv.mkDerivation rec {
2015-02-02 17:27:37 +00:00
version = "2.0.1";
name = "double-conversion-${version}";
2014-10-15 16:04:12 +01:00
2015-02-02 17:27:37 +00:00
src = fetchFromGitHub {
owner = "floitsch";
repo = "double-conversion";
rev = "v${version}";
sha256 = "05x5rdwndgp1vdq2z1bpvng0dd8pn93kw4vhl6nsvv9vsara2q4b";
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-02-02 17:27:37 +00:00
homepage = https://github.com/floitsch/double-conversion;
2014-10-15 16:04:12 +01:00
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ abbradar ];
2014-10-15 16:04:12 +01:00
};
}