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 2 , stdenv 3 , fetchFromGitLab 4 , gobject-introspection 5 , lib 6 , meson 7 , ninja 8 }: 9 10 - stdenv.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 ··· 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 - }
··· 1 + { gtk4 2 + , python3 3 , stdenv 4 , fetchFromGitLab 5 , gobject-introspection 6 , lib 7 , meson 8 , ninja 9 + , testers 10 }: 11 12 + stdenv.mkDerivation (finalAttrs: { 13 pname = "blueprint-compiler"; 14 + version = "0.6.0"; 15 16 src = fetchFromGitLab { 17 domain = "gitlab.gnome.org"; 18 owner = "jwestman"; 19 + repo = "blueprint-compiler"; 20 + rev = "v${finalAttrs.version}"; 21 + hash = "sha256-L6EGterkZ8EB6xSnJDZ3IMuOumpTpEGnU74X3UgC7k0="; 22 }; 23 24 + doCheck = true; 25 26 nativeBuildInputs = [ 27 meson ··· 30 31 buildInputs = [ 32 python3 33 + gtk4 34 + ] ++ (with python3.pkgs; [ 35 + pygobject3 36 + wrapPython 37 + ]); 38 39 propagatedBuildInputs = [ 40 gobject-introspection 41 ]; 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 + 54 meta = with lib; { 55 description = "A markup language for GTK user interface files"; 56 homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler"; 57 license = licenses.lgpl3Plus; 58 + maintainers = with maintainers; [ benediktbroich ranfdev ]; 59 + platforms = platforms.unix; 60 }; 61 + })