2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
2022-10-21 18:38:19 +00:00
|
|
|
, fetchpatch
|
2021-04-05 15:23:46 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "gi-docgen";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "2022.1";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
2021-05-28 09:39:13 +00:00
|
|
|
owner = "GNOME";
|
2021-04-05 15:23:46 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "35pL/2TQRVgPfAcfOGCLlSP1LIh4r95mFC+UoXQEEHo=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
depsBuildBuild = [
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3.pkgs; [
|
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
markupsafe
|
|
|
|
pygments
|
|
|
|
toml
|
|
|
|
typogrify
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Do not propagate Python
|
|
|
|
substituteInPlace $out/nix-support/propagated-build-inputs \
|
|
|
|
--replace "${python3}" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Documentation generator for GObject-based libraries";
|
2021-05-28 09:39:13 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gi-docgen";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.asl20; # OR GPL-3.0-or-later
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|