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

31 lines
726 B
Nix
Raw Normal View History

2014-10-15 15:04:12 +00:00
{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
name = "double-conversion-1.1.5";
src = fetchurl {
url = "https://double-conversion.googlecode.com/files/${name}.tar.gz";
sha256 = "0hnlyn9r8vd9b3dafnk01ykz4k7bk6xvmvslv93as1cswf7vdvqv";
};
unpackPhase = ''
mkdir $name
cd $name
tar xzf $src
'';
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://code.google.com/p/double-conversion/;
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = maintainers.abbradar;
};
}