nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (1234B)


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