add default.nix

This commit is contained in:
Martin Weinelt 2020-07-28 23:04:01 +02:00
parent 529e8705c2
commit f5f2190b40

21
default.nix Normal file
View file

@ -0,0 +1,21 @@
{ stdenv, bash
, flex, bison
, openssl, gnutls }:
stdenv.mkDerivation {
pname = "charybdis";
version = "3.5.7";
src = ./.;
configureFlags = [
"--enable-epoll"
"--enable-ipv6"
"--enable-openssl=${openssl.dev}"
"--with-program-prefix=charybdis-"
"--sysconfdir=/etc/charybdis"
];
nativeBuildInputs = [ bison flex ];
buildInputs = [ openssl gnutls ];
}