Merge pull request #242331 from Artturin/ananicycppupda
This commit is contained in:
commit
f37355f43d
|
@ -1,40 +1,56 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, clangStdenv
|
||||
, fetchFromGitLab
|
||||
, cmake
|
||||
, pkg-config
|
||||
, spdlog
|
||||
, nlohmann_json
|
||||
, systemd
|
||||
, libbpf
|
||||
, elfutils
|
||||
, bpftools
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
clangStdenv.mkDerivation rec {
|
||||
pname = "ananicy-cpp";
|
||||
version = "1.0.2";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "ananicy-cpp";
|
||||
repo = "ananicy-cpp";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "sha256-iR7yIIGJbRwu62GIEYi70PjtlKXmkPYqSJtMddspBKA=";
|
||||
sha256 = "sha256-BomtP9KcipBJuZjra/ojRyJi+pgktxGGEdt86N1H9Hc=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
bpftools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
spdlog
|
||||
nlohmann_json
|
||||
systemd
|
||||
libbpf
|
||||
elfutils
|
||||
zlib
|
||||
];
|
||||
|
||||
# BPF A call to built-in function '__stack_chk_fail' is not supported.
|
||||
hardeningDisable = [ "stackprotector" ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_EXTERNAL_JSON=ON"
|
||||
"-DUSE_EXTERNAL_SPDLOG=ON"
|
||||
"-DUSE_EXTERNAL_FMTLIB=ON"
|
||||
"-DUSE_BPF_PROC_IMPL=ON"
|
||||
"-DBPF_BUILD_LIBBPF=OFF"
|
||||
"-DENABLE_SYSTEMD=ON"
|
||||
"-DVERSION=${version}"
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue