Merge pull request #27347 from cstrahan/osquery-new
osquery: init at 2.5.2
This commit is contained in:
23
pkgs/development/libraries/linenoise-ng/default.nix
Normal file
23
pkgs/development/libraries/linenoise-ng/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user