Merge pull request #208157 from BenediktBroich/blueprint-compiler

Closes https://github.com/NixOS/nixpkgs/pull/190223

authored by Sandro and committed by GitHub 7592c514 403c65ab

+28 -13
+28 -13
pkgs/development/compilers/blueprint/default.nix
··· 1 - { python3 1 + { gtk4 2 + , python3 2 3 , stdenv 3 4 , fetchFromGitLab 4 5 , gobject-introspection 5 6 , lib 6 7 , meson 7 8 , ninja 9 + , testers 8 10 }: 9 11 10 - stdenv.mkDerivation rec { 12 + stdenv.mkDerivation (finalAttrs: { 11 13 pname = "blueprint-compiler"; 12 - version = "0.2.0"; 14 + version = "0.6.0"; 13 15 14 16 src = fetchFromGitLab { 15 17 domain = "gitlab.gnome.org"; 16 18 owner = "jwestman"; 17 - repo = pname; 18 - rev = "v${version}"; 19 - sha256 = "sha256-LXZ6n1oCbPa0taVbUZf52mGECrzXIcF8EaMVJ30rMtc="; 19 + repo = "blueprint-compiler"; 20 + rev = "v${finalAttrs.version}"; 21 + hash = "sha256-L6EGterkZ8EB6xSnJDZ3IMuOumpTpEGnU74X3UgC7k0="; 20 22 }; 21 23 22 - # Requires pythonfuzz, which I've found difficult to package 23 - doCheck = false; 24 + doCheck = true; 24 25 25 26 nativeBuildInputs = [ 26 27 meson ··· 29 30 30 31 buildInputs = [ 31 32 python3 32 - ]; 33 + gtk4 34 + ] ++ (with python3.pkgs; [ 35 + pygobject3 36 + wrapPython 37 + ]); 33 38 34 39 propagatedBuildInputs = [ 35 - # So that the compiler can find GIR and .ui files 36 40 gobject-introspection 37 41 ]; 38 42 43 + postFixup = '' 44 + makeWrapperArgs="\ 45 + --prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH \ 46 + --prefix PYTHONPATH : \"$(toPythonPath $out):$(toPythonPath ${python3.pkgs.pygobject3})\"" 47 + wrapPythonPrograms 48 + ''; 49 + 50 + passthru.tests.version = testers.testVersion { 51 + package = finalAttrs.finalPackage; 52 + }; 53 + 39 54 meta = with lib; { 40 55 description = "A markup language for GTK user interface files"; 41 56 homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler"; 42 57 license = licenses.lgpl3Plus; 43 - maintainers = [ maintainers.ranfdev ]; 44 - platforms = platforms.all; 58 + maintainers = with maintainers; [ benediktbroich ranfdev ]; 59 + platforms = platforms.unix; 45 60 }; 46 - } 61 + })