2021-02-01 19:14:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, itstool
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2021-02-01 19:14:13 +00:00
|
|
|
, pkg-config
|
2021-03-21 07:30:14 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2021-02-01 19:14:13 +00:00
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-03-21 07:30:14 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "yelp-tools";
|
2022-03-20 02:13:26 +00:00
|
|
|
version = "42.0";
|
2021-03-21 07:30:14 +00:00
|
|
|
|
|
|
|
format = "other";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-21 07:30:14 +00:00
|
|
|
url = "mirror://gnome/sources/yelp-tools/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-03-20 02:13:26 +00:00
|
|
|
sha256 = "LNQwY/+nJi3xXdjTeao+o5mdQmYfB1Y/SALaoRSfffQ=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2021-02-01 19:14:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2021-03-21 07:30:14 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libxml2 # xmllint required by yelp-check.
|
|
|
|
libxslt # xsltproc required by yelp-build and yelp-check.
|
2021-02-01 19:14:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-03-21 07:30:14 +00:00
|
|
|
itstool # build script checks for its presence but I am not sure if anything uses it
|
2021-05-07 22:18:14 +01:00
|
|
|
gnome.yelp-xsl
|
2021-02-01 19:14:13 +00:00
|
|
|
];
|
|
|
|
|
2021-03-21 07:30:14 +00:00
|
|
|
pythonPath = [
|
|
|
|
python3.pkgs.lxml
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = false; # TODO: Meson cannot find xmllint oherwise. Maybe add it to machine file?
|
|
|
|
|
2021-02-01 19:14:13 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2019-11-20 03:30:05 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Yelp/Tools";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Small programs that help you create, edit, manage, and publish your Mallard or DocBook documentation";
|
2021-02-01 19:14:13 +00:00
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ domenkozar ]);
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|