summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/core/yelp
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-02-16 11:42:22 +0100
committerLuca Bruno <lucabru@src.gnome.org>2014-02-16 11:43:35 +0100
commitda36d7d2207cda0413deeee9af0f42c071dc6d60 (patch)
treeed89b348eae8c5885de952d62f61c036e950f615 /pkgs/desktops/gnome-3/core/yelp
parent923681d576009ca9a18a18d8494e778cb8e568ae (diff)
downloadnixlib-da36d7d2207cda0413deeee9af0f42c071dc6d60.tar
nixlib-da36d7d2207cda0413deeee9af0f42c071dc6d60.tar.gz
nixlib-da36d7d2207cda0413deeee9af0f42c071dc6d60.tar.bz2
nixlib-da36d7d2207cda0413deeee9af0f42c071dc6d60.tar.lz
nixlib-da36d7d2207cda0413deeee9af0f42c071dc6d60.tar.xz
nixlib-da36d7d2207cda0413deeee9af0f42c071dc6d60.tar.zst
nixlib-da36d7d2207cda0413deeee9af0f42c071dc6d60.zip
yelp: new package
Yelp is the help viewer in Gnome.

https://wiki.gnome.org/Apps/Yelp
Diffstat (limited to 'pkgs/desktops/gnome-3/core/yelp')
-rw-r--r--pkgs/desktops/gnome-3/core/yelp/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome-3/core/yelp/default.nix b/pkgs/desktops/gnome-3/core/yelp/default.nix
new file mode 100644
index 000000000000..b5f6600fb60d
--- /dev/null
+++ b/pkgs/desktops/gnome-3/core/yelp/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, intltool, fetchurl, webkitgtk, pkgconfig, gtk3, glib, file
+, bash, makeWrapper, itstool, libxml2, libxslt, gnome3, icu }:
+
+# TODO: icons and theme still does not work
+# use packaged gnome3.gnome_icon_theme_symbolic 
+
+stdenv.mkDerivation rec {
+  name = "yelp-3.10.1";
+
+  src = fetchurl {
+    url = "https://download.gnome.org/sources/yelp/3.10/${name}.tar.xz";
+    sha256 = "17736479b7d0b1128c7d6cb3073f2b09e4bbc82670731b2a0d3a3219a520f816";
+  };
+
+  configureFlags = [ "--disable-static" ];
+
+  doCheck = true;
+
+  propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
+
+  preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";
+
+  buildInputs = [ pkgconfig gtk3 glib webkitgtk intltool itstool libxml2 libxslt icu file
+                  gnome3.gsettings_desktop_schemas makeWrapper gnome3.yelp_xsl ];
+
+  installFlags = "gsettingsschemadir=\${out}/share/${name}/glib-2.0/schemas/";
+
+  postInstall = ''
+    wrapProgram "$out/bin/yelp" \
+      --prefix XDG_DATA_DIRS : "${gtk3}/share:${gnome3.gnome_themes_standard}/share:${gnome3.gsettings_desktop_schemas}/share:$out/share:$out/share/${name}"
+  '';
+
+  preFixup = ''
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://wiki.gnome.org/Apps/Yelp;
+    description = "Yelp is the help viewer in Gnome.";
+    maintainers = with maintainers; [ lethalman ];
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+  };
+}