2017-02-09 14:17:35 +00:00
|
|
|
{ stdenv, fetchurl, itstool, intltool, pkgconfig
|
|
|
|
, libxml2, gnome2, atk, gtk2, glib
|
|
|
|
, mono, mono-addins, dbus-sharp-2_0, dbus-sharp-glib-2_0, gnome-sharp, gtk-sharp-2_0
|
|
|
|
, makeWrapper, lib}:
|
|
|
|
|
|
|
|
let
|
2017-07-18 20:25:15 +01:00
|
|
|
version = "1.15.9";
|
2017-02-09 14:17:35 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "tomboy";
|
|
|
|
inherit version;
|
2017-02-09 14:17:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/tomboy-notes/tomboy/releases/download/${version}/tomboy-${version}.tar.xz";
|
2017-07-18 20:25:15 +01:00
|
|
|
sha256 = "0j5jmd079bm2fydqaic5ymbfdxna3qlx6fkp2mqhgcdr7prsbl3q";
|
2017-02-09 14:17:35 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ itstool intltool
|
2017-02-09 14:17:35 +00:00
|
|
|
libxml2 gnome2.GConf atk gtk2
|
|
|
|
mono mono-addins dbus-sharp-2_0 dbus-sharp-glib-2_0 gnome-sharp gtk-sharp-2_0
|
|
|
|
makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
makeWrapper "${mono}/bin/mono" "$out/bin/tomboy" \
|
|
|
|
--add-flags "$out/lib/tomboy/Tomboy.exe" \
|
|
|
|
--prefix MONO_GAC_PREFIX : ${dbus-sharp-2_0} \
|
|
|
|
--prefix MONO_GAC_PREFIX : ${dbus-sharp-glib-2_0} \
|
|
|
|
--prefix MONO_GAC_PREFIX : ${gtk-sharp-2_0} \
|
|
|
|
--prefix MONO_GAC_PREFIX : ${gnome-sharp} \
|
|
|
|
--prefix MONO_GAC_PREFIX : ${mono-addins} \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ glib gtk-sharp-2_0 gtk-sharp-2_0.gtk gnome2.GConf ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Tomboy;
|
2017-02-09 14:17:35 +00:00
|
|
|
description = "A simple note-taking application with synchronization";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ stesie ];
|
|
|
|
};
|
|
|
|
}
|