1{ lib, stdenv, fetchFromGitHub, openssl, autoreconfHook, nettle }:
2
3stdenv.mkDerivation rec {
4 pname = "radsecproxy";
5 version = "1.9.0";
6
7 src = fetchFromGitHub {
8 owner = pname;
9 repo = pname;
10 rev = version;
11 sha256 = "0ppgnvmzk5j42zvz74mwaz6767lzf9vpl8y57w612fvqpg65g4bv";
12 };
13
14 nativeBuildInputs = [ autoreconfHook ];
15 buildInputs = [ openssl nettle ];
16
17 configureFlags = [
18 "--with-ssl=${openssl.dev}"
19 "--sysconfdir=/etc"
20 "--localstatedir=/var"
21 ];
22
23 meta = with lib; {
24 homepage = "https://software.nordu.net/radsecproxy/";
25 description = "A generic RADIUS proxy that supports both UDP and TLS (RadSec) RADIUS transports";
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ sargon ];
28 platforms = with platforms; linux;
29 };
30}