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:
parent
872fceeed6
commit
fb213161c3
|
@ -66,14 +66,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
desktop-file-utils
|
desktop-file-utils
|
||||||
(gi-docgen.overrideAttrs (attrs: {
|
gi-docgen
|
||||||
patches = attrs.patches ++ [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.gnome.org/GNOME/gi-docgen/-/commit/f4ff4787cce962b705fb2588b31f2988c5063c13.patch";
|
|
||||||
sha256 = "11VGFFb2PLVxnX/qUQdLPLfhGQWx4sf4apBP7R2JWjA=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}))
|
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
|
|
|
@ -1,34 +1,22 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitLab
|
, fetchurl
|
||||||
, fetchpatch
|
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, python3
|
, python3
|
||||||
|
, gnome
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "gi-docgen";
|
pname = "gi-docgen";
|
||||||
version = "2022.1";
|
version = "2022.2";
|
||||||
|
|
||||||
format = "other";
|
format = "other";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchurl {
|
||||||
domain = "gitlab.gnome.org";
|
url = "mirror://gnome/sources/gi-docgen/${lib.versions.major version}/gi-docgen-${version}.tar.xz";
|
||||||
owner = "GNOME";
|
sha256 = "JlQ5ENdqedYvZnEihWkqO2KnXzHQfLvupG7sfjTmOlQ=";
|
||||||
repo = pname;
|
|
||||||
rev = version;
|
|
||||||
sha256 = "35pL/2TQRVgPfAcfOGCLlSP1LIh4r95mFC+UoXQEEHo=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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 = [
|
depsBuildBuild = [
|
||||||
python3
|
python3
|
||||||
];
|
];
|
||||||
|
@ -55,6 +43,12 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
--replace "${python3}" ""
|
--replace "${python3}" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome.updateScript {
|
||||||
|
packageName = "gi-docgen";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Documentation generator for GObject-based libraries";
|
description = "Documentation generator for GObject-based libraries";
|
||||||
homepage = "https://gitlab.gnome.org/GNOME/gi-docgen";
|
homepage = "https://gitlab.gnome.org/GNOME/gi-docgen";
|
||||||
|
|
Loading…
Reference in a new issue