summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/core/yelp/default.nix
blob: 661ddc1f12f40ab12916d6b2a2c4a10fca971e6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ stdenv, intltool, fetchurl, webkitgtk, pkgconfig, gtk3, glib
, file, librsvg, gnome3, gdk_pixbuf, sqlite, groff
, bash, makeWrapper, itstool, libxml2, libxslt, icu, gst_all_1
, wrapGAppsHook }:

stdenv.mkDerivation rec {
  name = "yelp-${version}";
  version = "3.26.0";

  src = fetchurl {
    url = "mirror://gnome/sources/yelp/${gnome3.versionBranch version}/${name}.tar.xz";
    sha256 = "e4cb02ed2f44cfec3c352c957f8a461d9689cbc06eb3b503a58ffe92e1753f1b";
  };

  passthru = {
    updateScript = gnome3.updateScript { packageName = "yelp"; };
  };

  propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];

  preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ gtk3 glib webkitgtk intltool itstool sqlite
                  libxml2 libxslt icu file makeWrapper gnome3.yelp-xsl
                  librsvg gdk_pixbuf gnome3.defaultIconTheme groff
                  gnome3.gsettings-desktop-schemas wrapGAppsHook
                  gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good ];

  meta = with stdenv.lib; {
    homepage = https://wiki.gnome.org/Apps/Yelp;
    description = "The help viewer in Gnome";
    maintainers = gnome3.maintainers;
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}