3
0
Fork 0
forked from mirrors/nixpkgs

gi-docgen: 2022.1 → 2022.2

https://gitlab.gnome.org/GNOME/gi-docgen/-/tags/2022.2

Switch to GNOME mirror and add update script.
This commit is contained in:
Jan Tojnar 2022-11-12 00:00:15 +01:00
parent 872fceeed6
commit fb213161c3
2 changed files with 13 additions and 26 deletions

View file

@ -66,14 +66,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
desktop-file-utils
(gi-docgen.overrideAttrs (attrs: {
patches = attrs.patches ++ [
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gi-docgen/-/commit/f4ff4787cce962b705fb2588b31f2988c5063c13.patch";
sha256 = "11VGFFb2PLVxnX/qUQdLPLfhGQWx4sf4apBP7R2JWjA=";
})
];
}))
gi-docgen
gobject-introspection
meson
ninja

View file

@ -1,34 +1,22 @@
{ lib
, fetchFromGitLab
, fetchpatch
, fetchurl
, meson
, ninja
, python3
, gnome
}:
python3.pkgs.buildPythonApplication rec {
pname = "gi-docgen";
version = "2022.1";
version = "2022.2";
format = "other";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = pname;
rev = version;
sha256 = "35pL/2TQRVgPfAcfOGCLlSP1LIh4r95mFC+UoXQEEHo=";
src = fetchurl {
url = "mirror://gnome/sources/gi-docgen/${lib.versions.major version}/gi-docgen-${version}.tar.xz";
sha256 = "JlQ5ENdqedYvZnEihWkqO2KnXzHQfLvupG7sfjTmOlQ=";
};
patches = [
# Fix gnome-builder build
# https://gitlab.gnome.org/GNOME/gi-docgen/-/merge_requests/161
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gi-docgen/-/commit/0524047ada3e6a5572c43dd36201ebe589d08095.patch";
sha256 = "1P+i7v1sMULOd0w8K363Mssj+tBJ2wiSmE7DlztvCbw=";
})
];
depsBuildBuild = [
python3
];
@ -55,6 +43,12 @@ python3.pkgs.buildPythonApplication rec {
--replace "${python3}" ""
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gi-docgen";
};
};
meta = with lib; {
description = "Documentation generator for GObject-based libraries";
homepage = "https://gitlab.gnome.org/GNOME/gi-docgen";