at 23.11-beta 1.4 kB view raw
1{ lib 2, stdenv 3, fetchFromGitLab 4, cmake 5, boost 6, properties-cpp 7, pkg-config 8}: 9 10stdenv.mkDerivation rec { 11 pname = "process-cpp"; 12 version = "unstable-2021-05-11"; 13 14 src = fetchFromGitLab { 15 domain = "gitlab.com"; 16 owner = "ubports"; 17 repo = "development/core/lib-cpp/process-cpp"; 18 rev = "ee6d99a3278343f5fdcec7ed3dad38763e257310"; 19 sha256 = "sha256-jDYXKCzrg/ZGFC2xpyfkn/f7J3t0cdOwHK2mLlYWNN0="; 20 }; 21 22 postPatch = '' 23 # Excludes tests from tainting nativeBuildInputs with their dependencies when not being run 24 # Tests fail upon verifying OOM score adjustment via /proc/<pid>/oom_score 25 # [ RUN ] LinuxProcess.adjusting_proc_oom_score_adj_works 26 # /build/source/tests/linux_process_test.cpp:83: Failure 27 # Value of: is_approximately_equal(oom_score.value, core::posix::linux::proc::process::OomScoreAdj::max_value()) 28 # Actual: false (333 > 10) 29 # Expected: true 30 sed -i '/tests/d' CMakeLists.txt 31 ''; 32 33 nativeBuildInputs = [ 34 cmake 35 pkg-config 36 ]; 37 38 buildInputs = [ 39 boost 40 properties-cpp 41 ]; 42 43 meta = with lib; { 44 description = "A simple convenience library for handling processes in C++11"; 45 homepage = "https://gitlab.com/ubports/development/core/lib-cpp/process-cpp"; 46 license = with licenses; [ gpl3Only lgpl3Only ]; 47 maintainers = with maintainers; [ onny ]; 48 platforms = platforms.linux; 49 }; 50}