blob: 95903e2e76d11a3295c5f285229565881923453c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
{ dbus
, fetchFromGitLab
, gobject-introspection
, lib
, libadwaita
, meson
, ninja
, python3
, stdenv
, testers
, xvfb-run
}:
stdenv.mkDerivation (finalAttrs: {
pname = "blueprint-compiler";
version = "0.12.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "jwestman";
repo = "blueprint-compiler";
rev = "v${finalAttrs.version}";
hash = "sha256-pvYSFCiYynH3E6QOTu4RfG+6eucq++yiRu75qucSlZU=";
};
nativeBuildInputs = [
meson
ninja
];
buildInputs = [
libadwaita
(python3.withPackages (ps: with ps; [
pygobject3
]))
];
propagatedBuildInputs = [
# For setup hook, so that the compiler can find typelib files
gobject-introspection
];
nativeCheckInputs = [
dbus
xvfb-run
];
# requires xvfb-run
doCheck = !stdenv.hostPlatform.isDarwin
&& false; # tests time out
checkPhase = ''
runHook preCheck
xvfb-run dbus-run-session \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --no-rebuild --print-errorlogs
runHook postCheck
'';
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
meta = with lib; {
description = "Markup language for GTK user interface files";
mainProgram = "blueprint-compiler";
homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ benediktbroich ranfdev ];
platforms = platforms.unix;
};
})
|