tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
dbus-test-runner: init at unstable-2019-10-02
OPNA2608
2 years ago
01aee17e
8b3e7893
+82
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
dbus-test-runner
default.nix
top-level
all-packages.nix
+80
pkgs/development/tools/dbus-test-runner/default.nix
···
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchbzr
4
4
+
, testers
5
5
+
, autoreconfHook
6
6
+
, bash
7
7
+
, coreutils
8
8
+
, dbus
9
9
+
, dbus-glib
10
10
+
, glib
11
11
+
, intltool
12
12
+
, pkg-config
13
13
+
, python3
14
14
+
, xvfb-run
15
15
+
}:
16
16
+
17
17
+
stdenv.mkDerivation (finalAttrs: {
18
18
+
pname = "dbus-test-runner";
19
19
+
version = "unstable-2019-10-02";
20
20
+
21
21
+
src = fetchbzr {
22
22
+
url = "lp:dbus-test-runner";
23
23
+
rev = "109";
24
24
+
sha256 = "sha256-4yH19X98SVqpviCBIWzIX6FYHWxCbREpuKCNjQuTFDk=";
25
25
+
};
26
26
+
27
27
+
postPatch = ''
28
28
+
patchShebangs tests/test-wait-outputer
29
29
+
30
30
+
# Tests `cat` together build shell scripts
31
31
+
# true is a PATHable call, bash a shebang
32
32
+
substituteInPlace tests/Makefile.am \
33
33
+
--replace '/bin/true' 'true' \
34
34
+
--replace '/bin/bash' '${lib.getExe bash}'
35
35
+
'';
36
36
+
37
37
+
strictDeps = true;
38
38
+
39
39
+
nativeBuildInputs = [
40
40
+
autoreconfHook
41
41
+
glib # for autoconf macro, gtester, gdbus
42
42
+
intltool
43
43
+
pkg-config
44
44
+
];
45
45
+
46
46
+
buildInputs = [
47
47
+
dbus-glib
48
48
+
glib
49
49
+
];
50
50
+
51
51
+
nativeCheckInputs = [
52
52
+
bash
53
53
+
dbus
54
54
+
(python3.withPackages (ps: with ps; [
55
55
+
python-dbusmock
56
56
+
]))
57
57
+
xvfb-run
58
58
+
];
59
59
+
60
60
+
enableParallelBuilding = true;
61
61
+
62
62
+
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
63
63
+
64
64
+
checkFlags = [
65
65
+
"XVFB_RUN=${lib.getExe xvfb-run}"
66
66
+
];
67
67
+
68
68
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
69
69
+
70
70
+
meta = with lib; {
71
71
+
description = "A small little utility to run a couple of executables under a new DBus session for testing";
72
72
+
homepage = "https://launchpad.net/dbus-test-runner";
73
73
+
license = licenses.gpl3Only;
74
74
+
platforms = platforms.unix;
75
75
+
maintainers = teams.lomiri.members;
76
76
+
pkgConfigModules = [
77
77
+
"dbustest-1"
78
78
+
];
79
79
+
};
80
80
+
})
+2
pkgs/top-level/all-packages.nix
···
17726
17726
17727
17727
ansible-doctor = callPackage ../tools/admin/ansible/doctor.nix { };
17728
17728
17729
17729
+
dbus-test-runner = callPackage ../development/tools/dbus-test-runner { };
17730
17730
+
17729
17731
phpunit = callPackage ../development/tools/misc/phpunit { };
17730
17732
17731
17733
### DEVELOPMENT / TOOLS / LANGUAGE-SERVERS