Merge pull request #27347 from cstrahan/osquery-new

osquery: init at 2.5.2
This commit is contained in:
Charles Strahan
2017-07-24 21:51:10 -04:00
committed by GitHub
9 changed files with 483 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{ stdenv, lib, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "linenoise-ng-${version}";
version = "1.0.1";
src = fetchFromGitHub {
owner = "arangodb";
repo = "linenoise-ng";
rev = "v${version}";
sha256 = "176iz0kj0p8d8i3jqps4z8xkxwl3f1986q88i9xg5fvqgpzsxp20";
};
nativeBuildInputs = [ cmake ];
meta = {
homepage = "https://github.com/arangodb/linenoise-ng";
description = "A small, portable GNU readline replacement for Linux, Windows and MacOS which is capable of handling UTF-8 characters";
maintainers = with stdenv.lib.maintainers; [ cstrahan ];
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.bsd3;
};
}

View File

@@ -6,6 +6,8 @@
# Malloc implementation
, jemalloc ? null, gperftools ? null
, enableLite ? false
}:
let
@@ -35,6 +37,9 @@ stdenv.mkDerivation rec {
CMAKE_CXX_FLAGS = "-std=gnu++11";
JEMALLOC_LIB = stdenv.lib.optionalString (malloc == jemalloc) "-ljemalloc";
${if enableLite then "LIBNAME" else null} = "librocksdb_lite";
${if enableLite then "CXXFLAGS" else null} = "-DROCKSDB_LITE=1";
buildFlags = [
"DEBUG_LEVEL=0"
"shared_lib"