2017-03-03 13:20:43 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig }:
|
2013-02-18 21:12:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-18 02:28:53 +01:00
|
|
|
name = "snappy-${version}";
|
2017-03-03 13:20:43 +00:00
|
|
|
version = "1.1.4";
|
2013-02-18 21:12:11 +00:00
|
|
|
|
2017-03-03 13:20:43 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://github.com/google/snappy/releases/download/${version}/"
|
|
|
|
+ "snappy-${version}.tar.gz";
|
|
|
|
sha256 = "0mq0nz8gbi1sp3y6xcg0a6wbvnd6gc717f3vh2xrjmfj5w9gwjqk";
|
2013-02-18 21:12:11 +00:00
|
|
|
};
|
|
|
|
|
2017-03-03 13:29:39 +00:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
2017-03-03 13:20:43 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2013-02-18 21:12:11 +00:00
|
|
|
|
2014-09-14 03:13:43 +01:00
|
|
|
# -DNDEBUG for speed
|
|
|
|
configureFlags = [ "CXXFLAGS=-DNDEBUG" ];
|
|
|
|
|
2015-07-23 23:47:16 +01:00
|
|
|
# SIGILL on darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2013-02-18 21:12:11 +00:00
|
|
|
|
2014-09-14 03:13:43 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-02-19 10:23:28 +00:00
|
|
|
homepage = http://code.google.com/p/snappy/;
|
2014-09-14 03:13:43 +01:00
|
|
|
license = licenses.bsd3;
|
2013-02-18 21:12:11 +00:00
|
|
|
description = "Compression/decompression library for very high speeds";
|
2014-09-14 03:13:43 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2013-02-18 21:12:11 +00:00
|
|
|
};
|
|
|
|
}
|