1{ python3
2, stdenv
3, fetchFromGitLab
4, gobject-introspection
5, lib
6, meson
7, ninja
8}:
9
10stdenv.mkDerivation rec {
11 pname = "blueprint-compiler";
12 version = "0.2.0";
13
14 src = fetchFromGitLab {
15 domain = "gitlab.gnome.org";
16 owner = "jwestman";
17 repo = pname;
18 rev = "v${version}";
19 sha256 = "sha256-LXZ6n1oCbPa0taVbUZf52mGECrzXIcF8EaMVJ30rMtc=";
20 };
21
22 # Requires pythonfuzz, which I've found difficult to package
23 doCheck = false;
24
25 nativeBuildInputs = [
26 meson
27 ninja
28 ];
29
30 buildInputs = [
31 python3
32 ];
33
34 propagatedBuildInputs = [
35 # So that the compiler can find GIR and .ui files
36 gobject-introspection
37 ];
38
39 meta = with lib; {
40 description = "A markup language for GTK user interface files";
41 homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler";
42 license = licenses.lgpl3Plus;
43 maintainers = [ maintainers.ranfdev ];
44 platforms = platforms.all;
45 };
46}