2014-09-14 04:13:43 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook }:
|
2013-02-18 22:12:11 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-14 04:13:43 +02:00
|
|
|
name = "snappy-1.1.2";
|
2013-02-18 22:12:11 +01:00
|
|
|
|
2014-09-14 04:13:43 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "snappy";
|
|
|
|
rev = "1ff9be9b8fafc8528ca9e055646f5932aa5db9c4";
|
|
|
|
sha256 = "1zyjj13max0z42g3ii54n3qn7rbcga34dbi26lpm7v5ya752shx7";
|
2013-02-18 22:12:11 +01:00
|
|
|
};
|
|
|
|
|
2014-09-14 04:13:43 +02:00
|
|
|
buildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
|
2013-02-18 22:12:11 +01:00
|
|
|
preConfigure = ''
|
2014-09-14 04:13:43 +02:00
|
|
|
sh autogen.sh
|
2013-02-18 22:12:11 +01:00
|
|
|
'';
|
|
|
|
|
2014-09-14 04:13:43 +02:00
|
|
|
# -DNDEBUG for speed
|
|
|
|
configureFlags = [ "CXXFLAGS=-DNDEBUG" ];
|
|
|
|
|
2013-02-18 22:12:11 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|