1{ lib, stdenv, fetchFromGitHub, openssl, autoreconfHook, nettle }:
2
3stdenv.mkDerivation rec {
4 pname = "radsecproxy";
5 version = "1.9.3";
6
7 src = fetchFromGitHub {
8 owner = pname;
9 repo = pname;
10 rev = version;
11 sha256 = "sha256-4w5aQIh3loHrxFGhWt6pW2jgj/JuqQSYmNsnAkEuKoI=";
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://radsecproxy.github.io/";
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}