Merge pull request #98418 from erincandescent/dinoarwin
Dino: Enable on macOS/Darwin
This commit is contained in:
commit
658b78e9b6
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub
|
{ lib, stdenv, fetchFromGitHub
|
||||||
, vala, cmake, ninja, wrapGAppsHook, pkgconfig, gettext
|
, vala, cmake, ninja, wrapGAppsHook, pkgconfig, gettext
|
||||||
, gobject-introspection, gnome3, glib, gdk-pixbuf, gtk3, glib-networking
|
, gobject-introspection, gnome3, glib, gdk-pixbuf, gtk3, glib-networking
|
||||||
, xorg, libXdmcp, libxkbcommon
|
, xorg, libXdmcp, libxkbcommon
|
||||||
@ -60,23 +60,39 @@ stdenv.mkDerivation rec {
|
|||||||
libgcrypt
|
libgcrypt
|
||||||
libsoup
|
libsoup
|
||||||
pcre
|
pcre
|
||||||
xorg.libxcb
|
|
||||||
xorg.libpthreadstubs
|
|
||||||
libXdmcp
|
|
||||||
libxkbcommon
|
|
||||||
epoxy
|
epoxy
|
||||||
at-spi2-core
|
at-spi2-core
|
||||||
dbus
|
dbus
|
||||||
icu
|
icu
|
||||||
libsignal-protocol-c
|
libsignal-protocol-c
|
||||||
librsvg
|
librsvg
|
||||||
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libpthreadstubs
|
||||||
|
libXdmcp
|
||||||
|
libxkbcommon
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# 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 stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Modern Jabber/XMPP Client using GTK/Vala";
|
description = "Modern Jabber/XMPP Client using GTK/Vala";
|
||||||
homepage = "https://github.com/dino/dino";
|
homepage = "https://github.com/dino/dino";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
maintainers = with maintainers; [ mic92 qyliss ];
|
maintainers = with maintainers; [ mic92 qyliss ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user