2 , autoconf, automake, itstool, intltool, pkg-config
16 stdenv.mkDerivation rec {
18 version = "unstable-2023-07-01";
20 runtimeLoaderEnvVariableName = if stdenv.hostPlatform.isDarwin then
21 "DYLD_FALLBACK_LIBRARY_PATH"
25 src = fetchFromGitHub {
28 rev = "3e4b5050b66944532e95df3c31245c8ae6379b3f";
29 hash = "sha256-zSsckcEPEX99v3RkM4O4+Get5tnz4FOpiodoTGTZq+8=";
30 fetchSubmodules = true;
33 nativeBuildInputs = [ pkg-config makeWrapper ];
34 buildInputs = [ autoconf automake itstool intltool gettext
36 stfl ] ++ lib.optionals (guiSupport) [
38 # loaded at runtime by GTK#
43 NOCONFIGURE=1 NOGIT=1 ./autogen.sh
47 "--disable-frontend-gnome"
48 "--enable-frontend-stfl"
49 ] ++ lib.optional guiSupport "--enable-frontend-gnome";
52 makeWrapper "${mono}/bin/mono" "$out/bin/smuxi-message-buffer" \
53 --add-flags "$out/lib/smuxi/smuxi-message-buffer.exe" \
54 --prefix ${runtimeLoaderEnvVariableName} : ${lib.makeLibraryPath [
58 makeWrapper "${mono}/bin/mono" "$out/bin/smuxi-server" \
59 --add-flags "$out/lib/smuxi/smuxi-server.exe" \
60 --prefix ${runtimeLoaderEnvVariableName} : ${lib.makeLibraryPath [
64 makeWrapper "${mono}/bin/mono" "$out/bin/smuxi-frontend-stfl" \
65 --add-flags "$out/lib/smuxi/smuxi-frontend-stfl.exe" \
66 --prefix ${runtimeLoaderEnvVariableName} : ${lib.makeLibraryPath [
70 makeWrapper "${mono}/bin/mono" "$out/bin/smuxi-frontend-gnome" \
71 --add-flags "$out/lib/smuxi/smuxi-frontend-gnome.exe" \
72 --prefix MONO_GAC_PREFIX : ${if guiSupport then gtk-sharp-2_0 else ""} \
73 --prefix ${runtimeLoaderEnvVariableName} : ${lib.makeLibraryPath [
78 gtk-sharp-2_0.gtk gdk-pixbuf pango
81 # install log4net and nini libraries
82 mkdir -p $out/lib/smuxi/
83 cp -a lib/log4net.dll $out/lib/smuxi/
84 cp -a lib/Nini.dll $out/lib/smuxi/
86 # install GTK+ icon theme on Darwin
87 ${if guiSupport && stdenv.hostPlatform.isDarwin then "
88 mkdir -p $out/lib/smuxi/icons/
89 cp -a images/Smuxi-Symbolic $out/lib/smuxi/icons/
94 homepage = "https://smuxi.im/";
95 downloadPage = "https://smuxi.im/download/";
96 changelog = "https://github.com/meebey/smuxi/releases/tag/v${version}";
97 description = "irssi-inspired, detachable, cross-platform, multi-protocol (IRC, XMPP/Jabber) chat client for the GNOME desktop";
98 platforms = platforms.unix;
99 license = lib.licenses.gpl2Plus;
100 maintainers = with maintainers; [