Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchFromGitHub 2, gsasl, gnutls, pkg-config, cmake, zlib, libtasn1, libgcrypt, gtk3 3# this will not work on non-nixos systems 4, sendmailPath ? "/run/wrappers/bin/sendmail" 5}: 6 7stdenv.mkDerivation rec { 8 pname = "vmime"; 9 # XXX: using unstable rev for now to comply with the removal of 10 # deprecated symbols in the latest release of gsasl 11 version = "unstable-2022-03-26"; 12 src = fetchFromGitHub { 13 owner = "kisli"; 14 repo = "vmime"; 15 rev = "fc69321d5304c73be685c890f3b30528aadcfeaf"; 16 sha256 = "sha256-DUcGQcT7hp5Rs2Z5C8wo+3BYwWqED0KrF3h3vgLiiow="; 17 }; 18 19 buildInputs = [ gsasl gnutls zlib libtasn1 libgcrypt gtk3 ]; 20 nativeBuildInputs = [ pkg-config cmake ]; 21 22 cmakeFlags = [ 23 "-DVMIME_SENDMAIL_PATH=${sendmailPath}" 24 ]; 25 26 meta = { 27 homepage = "https://www.vmime.org/"; 28 description = "Free mail library for C++"; 29 license = lib.licenses.gpl3; 30 maintainers = with lib.maintainers; [viric]; 31 platforms = with lib.platforms; linux; 32 }; 33}