2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
2022-12-17 10:02:37 +00:00
|
|
|
, fetchurl
|
2021-04-05 15:23:46 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2022-12-17 10:02:37 +00:00
|
|
|
, gnome
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "gi-docgen";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "2022.2";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gi-docgen/${lib.versions.major version}/gi-docgen-${version}.tar.xz";
|
|
|
|
sha256 = "JlQ5ENdqedYvZnEihWkqO2KnXzHQfLvupG7sfjTmOlQ=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
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}" ""
|
|
|
|
'';
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = "gi-docgen";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|