2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchurl, pkg-config, libxml2Python, libxslt, intltool, gnome3
|
2018-07-21 01:44:44 +01:00
|
|
|
, python2Packages }:
|
2009-09-30 06:27:34 +01:00
|
|
|
|
2019-04-25 07:46:07 +01:00
|
|
|
python2Packages.buildPythonApplication rec {
|
|
|
|
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 06:27:34 +01: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 06:27:34 +01:00
|
|
|
};
|
2012-03-08 23:15:51 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ intltool pkg-config libxslt.dev ];
|
2017-09-13 02:02:03 +01:00
|
|
|
buildInputs = [ libxslt ];
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--disable-scrollkeeper" ];
|
2017-09-13 02:02:03 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace xml2po/xml2po/Makefile --replace '-e "s+^#!.*python.*+#!$(PYTHON)+"' '-e "s\"^#!.*python.*\"#!$(PYTHON)\""'
|
|
|
|
'';
|
|
|
|
|
2016-10-18 11:25:20 +01:00
|
|
|
propagatedBuildInputs = [ libxml2Python ];
|
2019-04-25 07:46:07 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-11-01 00:20:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
# Do not propagate Python
|
|
|
|
rm $out/nix-support/propagated-build-inputs
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-05-04 14:59:55 +01:00
|
|
|
description = "Collection of documentation utilities for the GNOME project";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-doc-utils";
|
2019-04-25 07:46:07 +01:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2009-09-30 06:27:34 +01:00
|
|
|
}
|