package.nix (1423B)
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 __structuredAttrs = true; 31 32 src = fetchurl { 33 url = "mirror://gnu/gnunet/messenger-gtk-${finalAttrs.version}.tar.gz"; 34 hash = "sha256-pWIOynWrC9cCpfqvgmD6rR6wFvoo2Gu94eEnEedn/P8="; 35 }; 36 37 nativeBuildInputs = [ 38 meson 39 cmake 40 ninja 41 pkg-config 42 desktop-file-utils # for update-desktop-database 43 ] 44 ++ lib.optional stdenv.isDarwin desktopToDarwinBundle; 45 46 buildInputs = [ 47 gnunet 48 gst_all_1.gstreamer 49 gst_all_1.gst-plugins-base 50 gst_all_1.gst-plugins-good 51 gtk3 52 libgcrypt 53 libgnunetchat 54 libhandy 55 libnotify 56 libportal 57 libportal-gtk3 58 libsodium 59 libunistring 60 pipewire 61 qrencode 62 ]; 63 64 meta = { 65 description = "A GTK based GUI for the Messenger service of GNUnet"; 66 homepage = "https://www.gnunet.org/"; 67 changelog = "https://git.gnunet.org/messenger-gtk.git/tree/ChangeLog?h=v${finalAttrs.version}"; 68 license = lib.licenses.agpl3Plus; 69 maintainers = [ lib.maintainers.sikmir ]; 70 platforms = lib.platforms.linux; 71 skip.ci = stdenv.isDarwin; 72 }; 73 })
