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

34 lines
786 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake }:
2013-02-18 22:12:11 +01:00
stdenv.mkDerivation rec {
2015-09-18 03:28:53 +02:00
name = "snappy-${version}";
version = "1.1.7";
src = fetchFromGitHub {
owner = "google";
repo = "snappy";
rev = "${version}";
sha256 = "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2";
2013-02-18 22:12:11 +01:00
};
patches = [ ./disable-benchmark.patch ];
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake ];
2013-02-18 22:12:11 +01:00
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
checkTarget = "test";
2014-09-14 04:13:43 +02:00
doCheck = true;
2013-02-18 22:12:11 +01:00
2014-09-14 04:13:43 +02:00
meta = with stdenv.lib; {
homepage = https://google.github.io/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
};
}