3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/documentation/gnome-doc-utils/default.nix
2018-08-03 17:06:03 -04:00

24 lines
681 B
Nix

{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 ];
configureFlags = [ "--disable-scrollkeeper" ];
preBuild = ''
substituteInPlace xml2po/xml2po/Makefile --replace '-e "s+^#!.*python.*+#!$(PYTHON)+"' '-e "s\"^#!.*python.*\"#!$(PYTHON)\""'
'';
propagatedBuildInputs = [ libxml2Python ];
}