2014-09-14 04:13:43 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook }:
|
2013-02-18 22:12:11 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-18 03:28:53 +02:00
|
|
|
name = "snappy-${version}";
|
|
|
|
version = "1.1.3";
|
2013-02-18 22:12:11 +01:00
|
|
|
|
2014-09-14 04:13:43 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "snappy";
|
2015-09-18 03:28:53 +02:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1w9pq8vag8c6m4ib0qbdbqzsnpwjvw01jbp15lgwg1rzwhvflm10";
|
2013-02-18 22:12:11 +01:00
|
|
|
};
|
|
|
|
|
2015-09-18 03:28:53 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
2013-02-18 22:12:11 +01:00
|
|
|
|
2014-09-14 04:13:43 +02:00
|
|
|
# -DNDEBUG for speed
|
|
|
|
configureFlags = [ "CXXFLAGS=-DNDEBUG" ];
|
|
|
|
|
2015-07-24 00:47:16 +02:00
|
|
|
# SIGILL on darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2013-02-18 22:12:11 +01:00
|
|
|
|
2014-09-14 04:13:43 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-02-19 11:23:28 +01:00
|
|
|
homepage = http://code.google.com/p/snappy/;
|
2014-09-14 04:13:43 +02:00
|
|
|
license = licenses.bsd3;
|
2013-02-18 22:12:11 +01:00
|
|
|
description = "Compression/decompression library for very high speeds";
|
2014-09-14 04:13:43 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2013-02-18 22:12:11 +01:00
|
|
|
};
|
|
|
|
}
|