default.nix (1151B)
1 { lib 2 , stdenv 3 , fetchurl 4 , cmake 5 , meson 6 , ninja 7 , pkg-config 8 , gnunet 9 , libextractor 10 , libgcrypt 11 , libsodium 12 }: 13 14 stdenv.mkDerivation rec { 15 pname = "libgnunetchat"; 16 version = "0.3.1"; 17 18 src = fetchurl { 19 url = "mirror://gnu/gnunet/libgnunetchat-${version}.tar.gz"; 20 hash = "sha256-IIyKQxaueFJQJ8+mt8Iz44S8FjZ/wIW7vFw/UYMzaA0="; 21 }; 22 23 postPatch = '' 24 # The major and minor version should be identical, but currently they don't: 25 # GNUNET_MESSENGER_VERSION 0x00000002 26 # GNUNET_CHAT_VERSION 0x000000010000L 27 substituteInPlace src/gnunet_chat_lib.c \ 28 --replace-fail "GNUNET_CHAT_VERSION_ASSERT();" "" 29 ''; 30 31 nativeBuildInputs = [ meson cmake ninja pkg-config ]; 32 33 buildInputs = [ gnunet libextractor libgcrypt libsodium ]; 34 35 doCheck = false; 36 37 meta = with lib; { 38 description = "A client-side library for applications to utilize the Messenger service of GNUnet"; 39 homepage = "https://www.gnunet.org/"; 40 changelog = "https://git.gnunet.org/libgnunetchat.git/tree/ChangeLog?h=v${version}"; 41 license = licenses.agpl3Plus; 42 maintainers = [ maintainers.sikmir ]; 43 platforms = platforms.unix; 44 }; 45 }