biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / documentation / gnome-doc-utils / default.nix
blob5586ed5c2301bc20399d2e7a0bc241a4beff9058
1 { lib, fetchurl, pkg-config, libxml2, libxslt, intltool, gnome
2 , python3Packages, fetchpatch, bash }:
4 python3Packages.buildPythonApplication rec {
5   pname = "gnome-doc-utils";
6   version = "0.20.10";
8   format = "other";
10   src = fetchurl {
11     url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
12     sha256 = "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb";
13   };
15   patches = [
16     # https://bugzilla.redhat.com/show_bug.cgi?id=438638
17     (fetchpatch {
18       url = "https://src.fedoraproject.org/rpms/gnome-doc-utils/raw/6b8908abe5af61a952db7174c5d1843708d61f1b/f/gnome-doc-utils-0.14.0-package.patch";
19       sha256 = "sha256-V2L2/30NoHY/wj3+dsombxveWRSUJb2YByOKtEgVx/0=";
20     })
21     # python3 support
22     (fetchpatch {
23       url = "https://src.fedoraproject.org/rpms/gnome-doc-utils/raw/6b8908abe5af61a952db7174c5d1843708d61f1b/f/gnome-doc-utils-0.20.10-python3.patch";
24       sha256 = "sha256-niH/Yx5H44rsRgkCZS8LWLFB9ZvuInt75zugzoVUhH0=";
25     })
26   ];
28   nativeBuildInputs = [ intltool pkg-config libxslt.dev ];
29   buildInputs = [ libxml2 libxslt bash ];
30   propagatedBuildInputs = [ python3Packages.libxml2 ];
32   configureFlags = [ "--disable-scrollkeeper" ];
34   passthru = {
35     updateScript = gnome.updateScript {
36       packageName = pname;
37     };
38   };
40   meta = with lib; {
41     description = "Collection of documentation utilities for the GNOME project";
42     homepage = "https://gitlab.gnome.org/GNOME/gnome-doc-utils";
43     license = with licenses; [ gpl2Plus lgpl2Plus ];
44     platforms = platforms.all;
45   };