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

90 lines
1.9 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, vala, cmake, ninja, wrapGAppsHook, pkg-config, gettext
2019-05-22 14:03:39 +03:00
, gobject-introspection, gnome3, glib, gdk-pixbuf, gtk3, glib-networking
2017-04-20 15:56:04 +03:00
, xorg, libXdmcp, libxkbcommon
, libnotify, libsoup, libgee
, librsvg, libsignal-protocol-c
, fetchpatch
2017-04-20 15:56:04 +03:00
, libgcrypt
, epoxy
, at-spi2-core
2017-04-20 15:56:04 +03:00
, sqlite
, dbus
, gpgme
, pcre
2018-11-27 17:49:30 +03:00
, qrencode
2019-02-06 03:54:07 +03:00
, icu
2017-04-20 15:56:04 +03:00
}:
stdenv.mkDerivation rec {
pname = "dino";
2020-11-12 20:15:45 +03:00
version = "0.2.0";
2017-04-20 15:56:04 +03:00
src = fetchFromGitHub {
owner = "dino";
repo = "dino";
rev = "v${version}";
2020-11-12 20:15:45 +03:00
sha256 = "0wy1hb3kz3k4gqqwx308n37cqag2d017jwfz0b5s30nkx2pbwspw";
2017-04-20 15:56:04 +03:00
};
nativeBuildInputs = [
vala
cmake
ninja
pkg-config
2017-04-20 15:56:04 +03:00
wrapGAppsHook
2019-02-06 03:54:07 +03:00
gettext
2017-04-20 15:56:04 +03:00
];
buildInputs = [
2018-11-27 17:49:30 +03:00
qrencode
gobject-introspection
glib-networking
2017-04-20 15:56:04 +03:00
glib
2019-02-14 00:47:50 +03:00
libgee
gnome3.adwaita-icon-theme
2017-04-20 15:56:04 +03:00
sqlite
2019-05-22 14:03:39 +03:00
gdk-pixbuf
2017-04-20 15:56:04 +03:00
gtk3
libnotify
gpgme
libgcrypt
2017-09-20 14:01:13 +03:00
libsoup
2017-04-20 15:56:04 +03:00
pcre
epoxy
at-spi2-core
2017-04-20 15:56:04 +03:00
dbus
2019-02-06 03:54:07 +03:00
icu
libsignal-protocol-c
librsvg
] ++ lib.optionals (!stdenv.isDarwin) [
xorg.libxcb
xorg.libpthreadstubs
libXdmcp
libxkbcommon
2017-04-20 15:56:04 +03: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";
2017-04-20 15:56:04 +03:00
license = licenses.gpl3;
platforms = platforms.linux ++ platforms.darwin;
2020-01-30 03:29:11 +03:00
maintainers = with maintainers; [ mic92 qyliss ];
2017-04-20 15:56:04 +03:00
};
}