diff options
author | ranfdev <ranfdev@gmail.com> | 2022-05-20 16:39:30 +0200 |
---|---|---|
committer | ranfdev <ranfdev@gmail.com> | 2022-05-28 16:21:12 +0200 |
commit | 7d4af5de4090988370a5c027b463608f187511af (patch) | |
tree | 600171b2ee4365c99890f370038ce7d639e7c716 /pkgs/development/compilers/blueprint | |
parent | 74e529163ed3c0b4c6841ada7b73f5126dff67c3 (diff) |
blueprint-compiler: init at 0.1.0
This package is needed by many new gtk apps.
Diffstat (limited to 'pkgs/development/compilers/blueprint')
-rw-r--r-- | pkgs/development/compilers/blueprint/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/compilers/blueprint/default.nix b/pkgs/development/compilers/blueprint/default.nix new file mode 100644 index 000000000000..9aa1893effe7 --- /dev/null +++ b/pkgs/development/compilers/blueprint/default.nix @@ -0,0 +1,51 @@ +{ python3 +, stdenv +, fetchFromGitLab +, gobject-introspection +, lib +, meson +, ninja +}: + +stdenv.mkDerivation rec { + pname = "blueprint-compiler"; + version = "unstable-2022-05-27"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "jwestman"; + repo = pname; + rev = "cebd9ecadc53790cd547392899589dd5de0ac552"; + sha256 = "sha256-mNR0ooJSRBIXy2E4avXYEdO1aSST+j41TsVg8+kitwo="; + }; + + # Requires pythonfuzz, which I've found difficult to package + doCheck = false; + + nativeBuildInputs = [ + meson + ninja + python3.pkgs.wrapPython + ]; + + buildInputs = [ + python3 + ]; + + propagatedBuildInputs = [ + # So that the compiler can find GIR and .ui files + gobject-introspection + ]; + + postFixup = '' + wrapPythonPrograms + ''; + + meta = with lib; { + description = "A markup language for GTK user interface files"; + homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler"; + license = licenses.lgpl3Plus; + maintainers = [ maintainers.ranfdev ]; + platforms = platforms.all; + }; +} |