nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, pkgconfig, libxml2Python, libxslt, intltool, gnome3
2, python2Packages }:
3
4python2Packages.buildPythonApplication rec {
5 pname = "gnome-doc-utils";
6 version = "0.20.10";
7
8 format = "other";
9
10 src = fetchurl {
11 url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
12 sha256 = "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb";
13 };
14
15 nativeBuildInputs = [ intltool pkgconfig libxslt.dev ];
16 buildInputs = [ libxslt ];
17
18 configureFlags = [ "--disable-scrollkeeper" ];
19
20 preBuild = ''
21 substituteInPlace xml2po/xml2po/Makefile --replace '-e "s+^#!.*python.*+#!$(PYTHON)+"' '-e "s\"^#!.*python.*\"#!$(PYTHON)\""'
22 '';
23
24 propagatedBuildInputs = [ libxml2Python ];
25
26 passthru = {
27 updateScript = gnome3.updateScript {
28 packageName = pname;
29 };
30 };
31
32 postFixup = ''
33 # Do not propagate Python
34 rm $out/nix-support/propagated-build-inputs
35 '';
36
37 meta = with stdenv.lib; {
38 description = "Collection of documentation utilities for the GNOME project";
39 homepage = "https://gitlab.gnome.org/GNOME/gnome-doc-utils";
40 license = with licenses; [ gpl2Plus lgpl2Plus ];
41 platforms = platforms.all;
42 };
43}