nixpkgs/pkgs/development/tools/documentation/gnome-doc-utils/default.nix

24 lines
681 B
Nix
Raw Normal View History

{fetchurl, pkgconfig, libxml2Python, libxslt, intltool
, python2Packages }:
python2Packages.buildPythonApplication {
name = "gnome-doc-utils-0.20.10";
format = "other";
src = fetchurl {
url = mirror://gnome/sources/gnome-doc-utils/0.20/gnome-doc-utils-0.20.10.tar.xz;
sha256 = "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb";
};
nativeBuildInputs = [ intltool pkgconfig ];
buildInputs = [ libxslt ];
2018-07-25 22:44:21 +01:00
configureFlags = [ "--disable-scrollkeeper" ];
preBuild = ''
substituteInPlace xml2po/xml2po/Makefile --replace '-e "s+^#!.*python.*+#!$(PYTHON)+"' '-e "s\"^#!.*python.*\"#!$(PYTHON)\""'
'';
propagatedBuildInputs = [ libxml2Python ];
}