nixpkgs/pkgs/applications/networking/instant-messengers/dino/default.nix
Luflosi 099bc11d38
dino: allow newer versions of libsignal-protocol-c
The exact version of libsignal-protocol-c used by dino is hard-coded to 2.3.2 because "libsignal-protocol-c has a history of breaking compatibility on the patch level". This prevents libsignal-protocol-c from being updated in https://github.com/NixOS/nixpkgs/pull/83736. Upstream already allows newer versions in the latest git master, so patch the source with this commit. Unfortunately patching doesn't work with git submodules but since the submodule is not used anyways, simply ignore this part of the patch.
2020-05-10 00:35:37 +02:00

83 lines
1.6 KiB
Nix

{ stdenv, fetchFromGitHub
, vala, cmake, ninja, wrapGAppsHook, pkgconfig, gettext
, gobject-introspection, gnome3, glib, gdk-pixbuf, gtk3, glib-networking
, xorg, libXdmcp, libxkbcommon
, libnotify, libsoup, libgee
, librsvg, libsignal-protocol-c
, fetchpatch
, libgcrypt
, epoxy
, at-spi2-core
, sqlite
, dbus
, gpgme
, pcre
, qrencode
, icu
}:
stdenv.mkDerivation rec {
pname = "dino";
version = "0.1.0";
src = fetchFromGitHub {
owner = "dino";
repo = "dino";
rev = "v${version}";
sha256 = "1k5cgj5n8s40i71wqdh6m1q0njl45ichfdbbywx9rga5hljz1c54";
};
patches = [
(fetchpatch {
# Allow newer versions of libsignal-protocol-c
url = "https://github.com/dino/dino/commit/fbd70ceaac5ebbddfa21a580c61165bf5b861303.patch";
sha256 = "0ydpwsmwrzfsry89fsffkfalhki4n1dw99ixjvpiingdrhjmwyl2";
excludes = [ "plugins/signal-protocol/libsignal-protocol-c" ];
})
];
nativeBuildInputs = [
vala
cmake
ninja
pkgconfig
wrapGAppsHook
gettext
];
buildInputs = [
qrencode
gobject-introspection
glib-networking
glib
libgee
gnome3.adwaita-icon-theme
sqlite
gdk-pixbuf
gtk3
libnotify
gpgme
libgcrypt
libsoup
pcre
xorg.libxcb
xorg.libpthreadstubs
libXdmcp
libxkbcommon
epoxy
at-spi2-core
dbus
icu
libsignal-protocol-c
librsvg
];
meta = with stdenv.lib; {
description = "Modern Jabber/XMPP Client using GTK/Vala";
homepage = "https://github.com/dino/dino";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ mic92 qyliss ];
};
}