nixpkgs/pkgs/development/tools/documentation/gnome-doc-utils/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

44 lines
1.2 KiB
Nix

{ stdenv, fetchurl, pkg-config, libxml2Python, libxslt, intltool, gnome3
, python2Packages }:
python2Packages.buildPythonApplication rec {
pname = "gnome-doc-utils";
version = "0.20.10";
format = "other";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb";
};
nativeBuildInputs = [ intltool pkg-config libxslt.dev ];
buildInputs = [ libxslt ];
configureFlags = [ "--disable-scrollkeeper" ];
preBuild = ''
substituteInPlace xml2po/xml2po/Makefile --replace '-e "s+^#!.*python.*+#!$(PYTHON)+"' '-e "s\"^#!.*python.*\"#!$(PYTHON)\""'
'';
propagatedBuildInputs = [ libxml2Python ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
postFixup = ''
# Do not propagate Python
rm $out/nix-support/propagated-build-inputs
'';
meta = with stdenv.lib; {
description = "Collection of documentation utilities for the GNOME project";
homepage = "https://gitlab.gnome.org/GNOME/gnome-doc-utils";
license = with licenses; [ gpl2Plus lgpl2Plus ];
platforms = platforms.all;
};
}