nixpkgs/pkgs/development/libraries/snappy/default.nix

33 lines
795 B
Nix
Raw Normal View History

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