citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

opensmtpd.nix (1315B)


      1 { stdenv, fetchurl, autoconf, automake, libtool, bison
      2 , libasr, libevent, zlib, openssl, db, pam, cacert
      3 }:
      4 
      5 stdenv.mkDerivation rec {
      6   name = "opensmtpd-${version}";
      7   version = "5.7.3p2";
      8 
      9   nativeBuildInputs = [ autoconf automake libtool bison ];
     10   buildInputs = [ libasr libevent zlib openssl db  ];
     11 
     12   src = fetchurl {
     13     url = "http://www.opensmtpd.org/archives/${name}.tar.gz";
     14     sha256 = "0d2973008d0f66bebb84bed516be6c32617735241cc54dd26643529281a8e52b";
     15   };
     16 
     17   patches = [ ./proc_path.diff ];
     18 
     19 
     20   configureFlags = [
     21     "--sysconfdir=/etc"
     22     "--localstatedir=/var"
     23     "--with-mantype=doc"
     24     "--with-pam"
     25     "--without-bsd-auth"
     26     "--with-sock-dir=/run"
     27     "--with-privsep-user=smtpd"
     28     "--with-queue-user=smtpq"
     29     "--with-ca-file=/etc/ssl/certs/ca-certificates.crt"
     30     "--with-libevent-dir=${libevent}"
     31     "--enable-table-db"
     32   ];
     33 
     34   installFlags = [
     35     "sysconfdir=\${out}/etc"
     36     "localstatedir=\${TMPDIR}"
     37   ];
     38 
     39   meta = {
     40     homepage = https://www.opensmtpd.org/;
     41     description = ''
     42       A free implementation of the server-side SMTP protocol as defined by
     43       RFC 5321, with some additional standard extensions. what
     44     '';
     45     license = stdenv.lib.licenses.isc;
     46     platforms = stdenv.lib.platforms.linux;
     47     maintainers = [ stdenv.lib.maintainers.rickynils ];
     48   };
     49 }