nixpkgs/pkgs/development/libraries/snappy/default.nix
Tuomas Tynkkynen f689a6d1c6 snappy: 1.1.4 -> 1.1.7
Fixes build on ARM
2017-11-26 11:13:20 +02:00

35 lines
804 B
Nix

{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "snappy-${version}";
version = "1.1.7";
src = fetchFromGitHub {
owner = "google";
repo = "snappy";
rev = "${version}";
sha256 = "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake ];
# -DNDEBUG for speed
configureFlags = [ "CXXFLAGS=-DNDEBUG" ];
# SIGILL on darwin
doCheck = !stdenv.isDarwin;
checkPhase = ''
(cd .. && ./build/snappy_unittest)
'';
meta = with stdenv.lib; {
homepage = https://google.github.io/snappy/;
license = licenses.bsd3;
description = "Compression/decompression library for very high speeds";
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}