1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/libraries/snappy/default.nix

32 lines
762 B
Nix
Raw Normal View History

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