2015-03-12 22:52:38 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util
|
2015-11-07 18:01:36 +01:00
|
|
|
, gtk, gtksourceview, dbus, dbus_glib, makeWrapper
|
|
|
|
, dconf }:
|
2013-02-21 12:16:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
p_name = "mousepad";
|
2015-03-12 22:52:38 +01:00
|
|
|
ver_maj = "0.4";
|
2013-02-21 12:16:51 +01:00
|
|
|
ver_min = "0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://xfce/src/apps/${p_name}/${ver_maj}/${name}.tar.bz2";
|
2015-03-12 22:52:38 +01:00
|
|
|
sha256 = "60114431eac8db6bb6ce18bd38f1630cccb684375b97a445a1b6fd619848d132";
|
2013-02-21 12:16:51 +01:00
|
|
|
};
|
|
|
|
name = "${p_name}-${ver_maj}.${ver_min}";
|
|
|
|
|
2013-08-15 16:37:30 +02:00
|
|
|
buildInputs =
|
2015-03-12 22:52:38 +01:00
|
|
|
[ pkgconfig intltool libxfce4util
|
|
|
|
gtk gtksourceview dbus dbus_glib makeWrapper
|
2015-11-07 18:01:36 +01:00
|
|
|
dconf
|
2013-08-15 16:37:30 +02:00
|
|
|
];
|
|
|
|
|
2017-01-09 11:18:16 +01:00
|
|
|
configureFlags = [ "--enable-keyfile-settings" ];
|
|
|
|
|
2015-03-12 22:52:38 +01:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/mousepad" \
|
2015-11-07 18:01:36 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:${gtksourceview}/share" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules"
|
2015-03-12 22:52:38 +01:00
|
|
|
'';
|
2013-02-21 12:16:51 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.xfce.org/;
|
|
|
|
description = "A simple text editor for Xfce";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2015-03-12 22:52:38 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-02-21 12:16:51 +01:00
|
|
|
};
|
|
|
|
}
|