Merge pull request #242331 from Artturin/ananicycppupda

This commit is contained in:
Artturi 2023-07-15 20:24:43 +03:00 committed by GitHub
commit f37355f43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"
];