default.nix (1392B)
1 { 2 lib, 3 stdenv, 4 fetchurl, 5 cmake, 6 meson, 7 ninja, 8 pkg-config, 9 desktop-file-utils, 10 desktopToDarwinBundle, 11 gnunet, 12 gst_all_1, 13 gtk3, 14 libgcrypt, 15 libgnunetchat, 16 libhandy, 17 libnotify, 18 libportal, 19 libportal-gtk3, 20 libsodium, 21 libunistring, 22 pipewire, 23 qrencode, 24 }: 25 26 stdenv.mkDerivation (finalAttrs: { 27 pname = "messenger-gtk"; 28 version = "0.10.2"; 29 30 src = fetchurl { 31 url = "mirror://gnu/gnunet/messenger-gtk-${finalAttrs.version}.tar.gz"; 32 hash = "sha256-pWIOynWrC9cCpfqvgmD6rR6wFvoo2Gu94eEnEedn/P8="; 33 }; 34 35 nativeBuildInputs = [ 36 meson 37 cmake 38 ninja 39 pkg-config 40 desktop-file-utils # for update-desktop-database 41 ] ++ lib.optional stdenv.isDarwin desktopToDarwinBundle; 42 43 buildInputs = [ 44 gnunet 45 gst_all_1.gstreamer 46 gst_all_1.gst-plugins-base 47 gst_all_1.gst-plugins-good 48 gtk3 49 libgcrypt 50 libgnunetchat 51 libhandy 52 libnotify 53 libportal 54 libportal-gtk3 55 libsodium 56 libunistring 57 pipewire 58 qrencode 59 ]; 60 61 meta = { 62 description = "A GTK based GUI for the Messenger service of GNUnet"; 63 homepage = "https://www.gnunet.org/"; 64 changelog = "https://git.gnunet.org/messenger-gtk.git/tree/ChangeLog?h=v${finalAttrs.version}"; 65 license = lib.licenses.agpl3Plus; 66 maintainers = [ lib.maintainers.sikmir ]; 67 platforms = lib.platforms.linux; 68 skip.ci = stdenv.isDarwin; 69 }; 70 })