diff options
author | Benedikt Broich <b.broich@posteo.de> | 2022-12-28 22:20:54 +0100 |
---|---|---|
committer | Benedikt Broich <b.broich@posteo.de> | 2022-12-29 09:03:42 +0100 |
commit | d34338eaf0db692cfc0b94b8196a466c85ad4186 (patch) | |
tree | 8b4fed61e98a968e43606b80b7c0bd0ea0c140d2 /pkgs/development/compilers | |
parent | 4f04af82a9976ba17efb89271dc8d6b3a6096be2 (diff) |
blueprint-compiler: 0.2.0 -> 0.6.0
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/blueprint/default.nix | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/pkgs/development/compilers/blueprint/default.nix b/pkgs/development/compilers/blueprint/default.nix index 8b595fc9c0ace..7ac0a68be05b9 100644 --- a/pkgs/development/compilers/blueprint/default.nix +++ b/pkgs/development/compilers/blueprint/default.nix @@ -1,26 +1,27 @@ -{ python3 +{ gtk4 +, python3 , stdenv , fetchFromGitLab , gobject-introspection , lib , meson , ninja +, testers }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "blueprint-compiler"; - version = "0.2.0"; + version = "0.6.0"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "jwestman"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-LXZ6n1oCbPa0taVbUZf52mGECrzXIcF8EaMVJ30rMtc="; + repo = "blueprint-compiler"; + rev = "v${finalAttrs.version}"; + hash = "sha256-L6EGterkZ8EB6xSnJDZ3IMuOumpTpEGnU74X3UgC7k0="; }; - # Requires pythonfuzz, which I've found difficult to package - doCheck = false; + doCheck = true; nativeBuildInputs = [ meson @@ -29,18 +30,32 @@ stdenv.mkDerivation rec { buildInputs = [ python3 - ]; + gtk4 + ] ++ (with python3.pkgs; [ + pygobject3 + wrapPython + ]); propagatedBuildInputs = [ - # So that the compiler can find GIR and .ui files gobject-introspection ]; + postFixup = '' + makeWrapperArgs="\ + --prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH \ + --prefix PYTHONPATH : \"$(toPythonPath $out):$(toPythonPath ${python3.pkgs.pygobject3})\"" + wrapPythonPrograms + ''; + + passthru.tests.version = testers.testVersion { + package = finalAttrs.finalPackage; + }; + 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; + maintainers = with maintainers; [ benediktbroich ranfdev ]; + platforms = platforms.unix; }; -} +}) |