parent
f83bb7d1ea
commit
f689a6d1c6
|
@ -1,24 +1,28 @@
|
||||||
{ stdenv, fetchurl, pkgconfig }:
|
{ stdenv, fetchFromGitHub, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "snappy-${version}";
|
name = "snappy-${version}";
|
||||||
version = "1.1.4";
|
version = "1.1.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://github.com/google/snappy/releases/download/${version}/"
|
owner = "google";
|
||||||
+ "snappy-${version}.tar.gz";
|
repo = "snappy";
|
||||||
sha256 = "0mq0nz8gbi1sp3y6xcg0a6wbvnd6gc717f3vh2xrjmfj5w9gwjqk";
|
rev = "${version}";
|
||||||
|
sha256 = "1x7r8sjmdqlqjz0xfiwdyrqpgaj5yrvrgb28ivgpvnxgar5qv6m2";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "doc" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
# -DNDEBUG for speed
|
# -DNDEBUG for speed
|
||||||
configureFlags = [ "CXXFLAGS=-DNDEBUG" ];
|
configureFlags = [ "CXXFLAGS=-DNDEBUG" ];
|
||||||
|
|
||||||
# SIGILL on darwin
|
# SIGILL on darwin
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
checkPhase = ''
|
||||||
|
(cd .. && ./build/snappy_unittest)
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://google.github.io/snappy/;
|
homepage = https://google.github.io/snappy/;
|
||||||
|
|
Loading…
Reference in New Issue