diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2018-08-01 02:19:25 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2018-08-01 22:24:47 +0200 |
commit | b5477ab37ba0b66f2deda18a381a83c5d0017620 (patch) | |
tree | 725c08632865f64b63986f7b597b21d16cad031e /pkgs/servers/freeradius | |
parent | b0003a1680b405a973a8110959211ad911ab42fb (diff) |
freeradius: add rest module and multiple outputs
Diffstat (limited to 'pkgs/servers/freeradius')
-rw-r--r-- | pkgs/servers/freeradius/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/servers/freeradius/default.nix b/pkgs/servers/freeradius/default.nix index a3e83f4e069e..df2130777bb8 100644 --- a/pkgs/servers/freeradius/default.nix +++ b/pkgs/servers/freeradius/default.nix @@ -21,6 +21,8 @@ , withYubikey ? false , collectd , withCollectd ? false +, curl +, withRest ? false }: assert withSqlite -> sqlite != null; @@ -32,6 +34,7 @@ assert withRedis -> hiredis != null; assert withMysql -> mysql != null; assert withYubikey -> libyubikey != null; assert withCollectd -> collectd != null; +assert withRest -> curl != null && withJson; ## TODO: include windbind optionally (via samba?) ## TODO: include oracle optionally @@ -59,11 +62,13 @@ stdenv.mkDerivation rec { ++ optional withMysql mysql.connector-c ++ optional withJson json_c ++ optional withYubikey libyubikey - ++ optional withCollectd collectd; + ++ optional withCollectd collectd + ++ optional withRest curl; + configureFlags = [ - "--sysconfdir=/etc" - "--localstatedir=/var" + "--sysconfdir=/etc" + "--localstatedir=/var" ] ++ optional (!linkOpenssl) "--with-openssl=no"; postPatch = '' @@ -75,6 +80,8 @@ stdenv.mkDerivation rec { "localstatedir=\${TMPDIR}" ]; + outputs = [ "out" "dev" "man" "doc" ]; + meta = with stdenv.lib; { homepage = https://freeradius.org/; description = "A modular, high performance free RADIUS suite"; |