mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
28 lines
701 B
Nix
28 lines
701 B
Nix
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.0.1";
|
|
name = "double-conversion-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "floitsch";
|
|
repo = "double-conversion";
|
|
rev = "v${version}";
|
|
sha256 = "05x5rdwndgp1vdq2z1bpvng0dd8pn93kw4vhl6nsvv9vsara2q4b";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Binary-decimal and decimal-binary routines for IEEE doubles";
|
|
homepage = https://github.com/floitsch/double-conversion;
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = maintainers.abbradar;
|
|
};
|
|
}
|