summary refs log tree commit diff
path: root/pkgs/development/libraries/snappy/default.nix
blob: 90469508d0e51634b97e9f350aa54ec717cbe1dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook }:

stdenv.mkDerivation rec {
  name = "snappy-1.1.2";
  
  src = fetchFromGitHub {
    owner = "google";
    repo = "snappy";
    rev = "1ff9be9b8fafc8528ca9e055646f5932aa5db9c4";
    sha256 = "1zyjj13max0z42g3ii54n3qn7rbcga34dbi26lpm7v5ya752shx7";
  };

  buildInputs = [ pkgconfig autoreconfHook ];

  preConfigure = ''
    sh autogen.sh
  '';

  # -DNDEBUG for speed
  configureFlags = [ "CXXFLAGS=-DNDEBUG" ];

  doCheck = true;

  meta = with stdenv.lib; {
    homepage = http://code.google.com/p/snappy/;
    license = licenses.bsd3;
    description = "Compression/decompression library for very high speeds";
    platforms = platforms.unix;
    maintainers = with maintainers; [ wkennington ];
  };
}