tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
process-cpp: init at unstable-2021-05-11
Jonas Heinrich
3 years ago
16fe46f4
7b32e537
+52
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
process-cpp
default.nix
top-level
all-packages.nix
+50
pkgs/development/libraries/process-cpp/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitLab
4
4
+
, cmake
5
5
+
, boost
6
6
+
, properties-cpp
7
7
+
, pkg-config
8
8
+
}:
9
9
+
10
10
+
stdenv.mkDerivation rec {
11
11
+
pname = "process-cpp";
12
12
+
version = "unstable-2021-05-11";
13
13
+
14
14
+
src = fetchFromGitLab {
15
15
+
domain = "gitlab.com";
16
16
+
owner = "ubports";
17
17
+
repo = "development/core/lib-cpp/process-cpp";
18
18
+
rev = "ee6d99a3278343f5fdcec7ed3dad38763e257310";
19
19
+
sha256 = "sha256-jDYXKCzrg/ZGFC2xpyfkn/f7J3t0cdOwHK2mLlYWNN0=";
20
20
+
};
21
21
+
22
22
+
postPatch = ''
23
23
+
# Excludes tests from tainting nativeBuildInputs with their dependencies when not being run
24
24
+
# Tests fail upon verifying OOM score adjustment via /proc/<pid>/oom_score
25
25
+
# [ RUN ] LinuxProcess.adjusting_proc_oom_score_adj_works
26
26
+
# /build/source/tests/linux_process_test.cpp:83: Failure
27
27
+
# Value of: is_approximately_equal(oom_score.value, core::posix::linux::proc::process::OomScoreAdj::max_value())
28
28
+
# Actual: false (333 > 10)
29
29
+
# Expected: true
30
30
+
sed -i '/tests/d' CMakeLists.txt
31
31
+
'';
32
32
+
33
33
+
nativeBuildInputs = [
34
34
+
cmake
35
35
+
pkg-config
36
36
+
];
37
37
+
38
38
+
buildInputs = [
39
39
+
boost
40
40
+
properties-cpp
41
41
+
];
42
42
+
43
43
+
meta = with lib; {
44
44
+
description = "A simple convenience library for handling processes in C++11";
45
45
+
homepage = "https://gitlab.com/ubports/development/core/lib-cpp/process-cpp";
46
46
+
license = with licenses; [ gpl3Only lgpl3Only ];
47
47
+
maintainers = with maintainers; [ onny ];
48
48
+
platforms = platforms.linux;
49
49
+
};
50
50
+
}
+2
pkgs/top-level/all-packages.nix
···
31669
31669
31670
31670
premid = callPackage ../applications/misc/premid { };
31671
31671
31672
31672
+
process-cpp = callPackage ../development/libraries/process-cpp { };
31673
31673
+
31672
31674
processing = callPackage ../applications/graphics/processing {
31673
31675
jdk = oraclejdk8;
31674
31676
};