diff options
author | Artturin <Artturin@artturin.com> | 2023-07-08 22:25:46 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-07-14 02:49:23 +0300 |
commit | 0a7693d9afef287602c31d0b9678bb07e02f5323 (patch) | |
tree | 1ceca1e39b11fad5affb072315794cb190b60472 /pkgs/misc | |
parent | 4429be18066958dcd058bbfa1e8e947d1baa4fe3 (diff) |
ananicy-cpp: 1.0.2 -> 1.1.0
had to use clangStdenv because /nix/store/1qa12idg59nlxjjdrw4hfyxdkhfd3nrq-clang-wrapper-11.1.0/bin/ar: CMakeFiles/ananicy_cpp_bpf_c.dir/src/bpf_program_utils.c.o: plugin needed to handle lto object ananicy-cpp> /nix/store/1qa12idg59nlxjjdrw4hfyxdkhfd3nrq-clang-wrapper-11.1.0/bin/ranlib: libananicy_cpp_bpf_c.a(bpf_program_utils.c.o): plugin needed to handle lto object ananicy-cpp> [100%] Linking CXX executable ananicy-cpp ananicy-cpp> /nix/store/zsvpmlddl2i5mpzm031a99xfpn410m5b-binutils-2.40/bin/ld: /build/cchtSHrR.ltrans5.ltrans.o: in function `ProcessQueue::stop()': ananicy-cpp> <artificial>:(.text+0x2274): undefined reference to `destroy_bpf_program' ananicy-cpp> /nix/store/zsvpmlddl2i5mpzm031a99xfpn410m5b-binutils-2.40/bin/ld: /build/cchtSHrR.ltrans5.ltrans.o: in function `ProcessQueue::init()': ananicy-cpp> <artificial>:(.text+0x8460): undefined reference to `initialize_bpf_program' ananicy-cpp> /nix/store/zsvpmlddl2i5mpzm031a99xfpn410m5b-binutils-2.40/bin/ld: <artificial>:(.text+0x846c): undefined reference to `bpf_program_init_events' ananicy-cpp> /nix/store/zsvpmlddl2i5mpzm031a99xfpn410m5b-binutils-2.40/bin/ld: <artificial>:(.text+0x8486): undefined reference to `destroy_bpf_program' ananicy-cpp> /nix/store/zsvpmlddl2i5mpzm031a99xfpn410m5b-binutils-2.40/bin/ld: /build/cchtSHrR.ltrans5.ltrans.o: in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<ProcessQueue::start()::{lambda(std::stop_token const&)#1}, std::stop_token> > >::_M_run() [clone .lto_priv.0]': ananicy-cpp> <artificial>:(.text+0x861d): undefined reference to `destroy_bpf_program' ananicy-cpp> collect2: error: ld returned 1 exit status ananicy-cpp> make[2]: *** [CMakeFiles/ananicy-cpp.dir/build.make:325: ananicy-cpp] Error 1 ananicy-cpp> make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/ananicy-cpp.dir/all] Error 2 ananicy-cpp> make: *** [Makefile:136: all] Error 2
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/ananicy-cpp/default.nix | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/pkgs/misc/ananicy-cpp/default.nix b/pkgs/misc/ananicy-cpp/default.nix index 96284ba03ae63..e8679c9cb5784 100644 --- a/pkgs/misc/ananicy-cpp/default.nix +++ b/pkgs/misc/ananicy-cpp/default.nix @@ -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}" ]; |