2013-02-21 12:16:51 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, libexif, gtk
|
2018-02-25 03:23:58 +01:00
|
|
|
, exo, dbus-glib, libxfce4util, libxfce4ui, xfconf
|
|
|
|
, hicolor-icon-theme, makeWrapper
|
2014-11-03 19:40:59 +01:00
|
|
|
}:
|
2013-02-21 12:16:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
p_name = "ristretto";
|
|
|
|
ver_maj = "0.6";
|
|
|
|
ver_min = "3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://xfce/src/apps/${p_name}/${ver_maj}/${name}.tar.bz2";
|
|
|
|
sha256 = "0y9d8w1plwp4vmxs44y8k8x15i0k0xln89k6jndhv6lf57g1cs1b";
|
|
|
|
};
|
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
|
|
|
|
|
|
|
buildInputs =
|
2018-02-25 03:23:58 +01:00
|
|
|
[ pkgconfig intltool libexif gtk dbus-glib exo libxfce4util
|
|
|
|
libxfce4ui xfconf hicolor-icon-theme makeWrapper
|
2013-02-21 12:16:51 +01:00
|
|
|
];
|
2014-11-03 19:40:59 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/ristretto" \
|
2018-02-25 03:23:58 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${hicolor-icon-theme}/share"
|
2014-11-03 19:40:59 +01:00
|
|
|
'';
|
|
|
|
|
2013-02-21 12:16:51 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://goodies.xfce.org/projects/applications/${p_name}";
|
|
|
|
description = "A fast and lightweight picture-viewer for the Xfce desktop environment";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-02-21 12:16:51 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
|
|
};
|
|
|
|
}
|