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