Merge pull request #207839 from onny/processcpp

process-cpp: init at unstable-2021-05-11

authored by

Jonas Heinrich and committed by
GitHub
7bc51003 def5159f

+52
+50
pkgs/development/libraries/process-cpp/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitLab 4 + , cmake 5 + , boost 6 + , properties-cpp 7 + , pkg-config 8 + }: 9 + 10 + stdenv.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 + }
+2
pkgs/top-level/all-packages.nix
··· 31715 31715 31716 31716 premid = callPackage ../applications/misc/premid { }; 31717 31717 31718 + process-cpp = callPackage ../development/libraries/process-cpp { }; 31719 + 31718 31720 processing = callPackage ../applications/graphics/processing { 31719 31721 jdk = oraclejdk8; 31720 31722 };