2021-09-12 16:25:32 +00:00
|
|
|
{ lib, fetchurl, pkg-config, libxml2, libxslt, intltool, gnome
|
|
|
|
, python3Packages, fetchpatch, bash }:
|
2009-09-30 05:27:34 +00:00
|
|
|
|
2021-09-12 16:25:32 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-04-25 06:46:07 +00:00
|
|
|
pname = "gnome-doc-utils";
|
|
|
|
version = "0.20.10";
|
|
|
|
|
2017-03-21 12:01:17 +00:00
|
|
|
format = "other";
|
2012-03-08 23:15:51 +00:00
|
|
|
|
2009-09-30 05:27:34 +00:00
|
|
|
src = fetchurl {
|
2021-01-23 12:26:19 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2013-12-11 08:20:20 +00:00
|
|
|
sha256 = "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb";
|
2009-09-30 05:27:34 +00:00
|
|
|
};
|
2012-03-08 23:15:51 +00:00
|
|
|
|
2021-09-12 16:25:32 +00:00
|
|
|
patches = [
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=438638
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/gnome-doc-utils/raw/6b8908abe5af61a952db7174c5d1843708d61f1b/f/gnome-doc-utils-0.14.0-package.patch";
|
|
|
|
sha256 = "sha256-V2L2/30NoHY/wj3+dsombxveWRSUJb2YByOKtEgVx/0=";
|
|
|
|
})
|
|
|
|
# python3 support
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/gnome-doc-utils/raw/6b8908abe5af61a952db7174c5d1843708d61f1b/f/gnome-doc-utils-0.20.10-python3.patch";
|
|
|
|
sha256 = "sha256-niH/Yx5H44rsRgkCZS8LWLFB9ZvuInt75zugzoVUhH0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ intltool pkg-config libxslt.dev ];
|
2021-09-12 16:25:32 +00:00
|
|
|
buildInputs = [ libxml2 libxslt bash ];
|
|
|
|
propagatedBuildInputs = [ python3Packages.libxml2 ];
|
2017-09-13 01:02:03 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--disable-scrollkeeper" ];
|
2017-09-13 01:02:03 +00:00
|
|
|
|
2019-04-25 06:46:07 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2019-04-25 06:46:07 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-05-04 13:59:55 +00:00
|
|
|
description = "Collection of documentation utilities for the GNOME project";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-doc-utils";
|
2019-04-25 06:46:07 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2009-09-30 05:27:34 +00:00
|
|
|
}
|