2015-03-12 22:52:38 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util
|
2018-02-25 03:23:58 +01:00
|
|
|
, gtk, gtksourceview, dbus, dbus-glib, makeWrapper
|
2015-11-07 18:01:36 +01:00
|
|
|
, 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}";
|
|
|
|
|
2017-12-18 18:20:19 +01:00
|
|
|
patches = [ ./mousepad-12134.patch ];
|
|
|
|
|
2013-08-15 16:37:30 +02:00
|
|
|
buildInputs =
|
2015-03-12 22:52:38 +01:00
|
|
|
[ pkgconfig intltool libxfce4util
|
2018-02-25 03:23:58 +01:00
|
|
|
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" \
|
2017-07-24 06:24:11 +02:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules"
|
2015-03-12 22:52:38 +01:00
|
|
|
'';
|
2013-02-21 12:16:51 +01:00
|
|
|
|
|
|
|
meta = {
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://www.xfce.org/;
|
2013-02-21 12:16:51 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|