3
0
Fork 0
forked from mirrors/nixpkgs

double-conversion: update package

This commit is contained in:
Nikolay Amiantov 2015-02-02 20:27:37 +03:00
parent 0867c43294
commit b6dfcaa08e

View file

@ -1,19 +1,16 @@
{ stdenv, fetchurl, cmake }:
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "double-conversion-1.1.5";
version = "2.0.1";
name = "double-conversion-${version}";
src = fetchurl {
url = "https://double-conversion.googlecode.com/files/${name}.tar.gz";
sha256 = "0hnlyn9r8vd9b3dafnk01ykz4k7bk6xvmvslv93as1cswf7vdvqv";
src = fetchFromGitHub {
owner = "floitsch";
repo = "double-conversion";
rev = "v${version}";
sha256 = "05x5rdwndgp1vdq2z1bpvng0dd8pn93kw4vhl6nsvv9vsara2q4b";
};
unpackPhase = ''
mkdir $name
cd $name
tar xzf $src
'';
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
@ -22,7 +19,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "Binary-decimal and decimal-binary routines for IEEE doubles";
homepage = https://code.google.com/p/double-conversion/;
homepage = https://github.com/floitsch/double-conversion;
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = maintainers.abbradar;