nixpkgs/pkgs/applications/networking/instant-messengers/dino/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
2.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, vala, cmake, ninja, wrapGAppsHook, pkg-config, gettext
, gobject-introspection, gnome, glib, gdk-pixbuf, gtk3, glib-networking
2017-04-20 12:56:04 +00:00
, xorg, libXdmcp, libxkbcommon
, libnotify, libsoup, libgee
, librsvg, libsignal-protocol-c
2017-04-20 12:56:04 +00:00
, libgcrypt
, libepoxy
, at-spi2-core
2017-04-20 12:56:04 +00:00
, sqlite
, dbus
, gpgme
, pcre
2018-11-27 14:49:30 +00:00
, qrencode
2019-02-06 00:54:07 +00:00
, icu
, gspell
, srtp, libnice, gnutls, gstreamer, gst-plugins-base, gst-plugins-good
2017-04-20 12:56:04 +00:00
}:
stdenv.mkDerivation rec {
pname = "dino";
2022-02-13 16:07:34 +00:00
version = "0.3.0";
2017-04-20 12:56:04 +00:00
src = fetchFromGitHub {
owner = "dino";
repo = "dino";
rev = "v${version}";
2022-02-13 16:07:34 +00:00
sha256 = "sha256-L5a5QlF9qlr4X/hGTabbbvOE5J1x/UVneWl/BRAa29Q=";
2017-04-20 12:56:04 +00:00
};
nativeBuildInputs = [
vala
cmake
ninja
pkg-config
2017-04-20 12:56:04 +00:00
wrapGAppsHook
2019-02-06 00:54:07 +00:00
gettext
2017-04-20 12:56:04 +00:00
];
buildInputs = [
2018-11-27 14:49:30 +00:00
qrencode
gobject-introspection
glib-networking
2017-04-20 12:56:04 +00:00
glib
2019-02-13 21:47:50 +00:00
libgee
gnome.adwaita-icon-theme
2017-04-20 12:56:04 +00:00
sqlite
2019-05-22 11:03:39 +00:00
gdk-pixbuf
2017-04-20 12:56:04 +00:00
gtk3
libnotify
gpgme
libgcrypt
2017-09-20 11:01:13 +00:00
libsoup
2017-04-20 12:56:04 +00:00
pcre
libepoxy
at-spi2-core
2017-04-20 12:56:04 +00:00
dbus
2019-02-06 00:54:07 +00:00
icu
libsignal-protocol-c
librsvg
2022-02-13 16:07:34 +00:00
gspell
srtp
libnice
gnutls
gstreamer
gst-plugins-base
gst-plugins-good
] ++ lib.optionals (!stdenv.isDarwin) [
xorg.libxcb
xorg.libpthreadstubs
libXdmcp
libxkbcommon
2017-04-20 12:56:04 +00:00
];
# Dino looks for plugins with a .so filename extension, even on macOS where
# .dylib is appropriate, and despite the fact that it builds said plugins with
# that as their filename extension
#
# Therefore, on macOS rename all of the plugins to use correct names that Dino
# will load
#
# See https://github.com/dino/dino/wiki/macOS
postFixup = lib.optionalString (stdenv.isDarwin) ''
cd "$out/lib/dino/plugins/"
for f in *.dylib; do
mv "$f" "$(basename "$f" .dylib).so"
done
'';
meta = with lib; {
description = "Modern Jabber/XMPP Client using GTK/Vala";
homepage = "https://github.com/dino/dino";
2021-09-23 08:45:41 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ qyliss tomfitzhenry ];
2017-04-20 12:56:04 +00:00
};
}