diff options
author | arthsmn <arth.sh@proton.me> | 2023-12-17 21:26:09 -0300 |
---|---|---|
committer | arthsmn <arth.sh@proton.me> | 2023-12-18 16:36:43 -0300 |
commit | aaae1b52a3c2f20e53025228a893f1303f81ced1 (patch) | |
tree | b850b36750292060ae261d1c61d178afd7de89f9 /pkgs/by-name/kt | |
parent | 2f1147402b4ad5846afb0ae0b4fadd4921562e7a (diff) |
ktls-utils: init at 0.10
Diffstat (limited to 'pkgs/by-name/kt')
-rw-r--r-- | pkgs/by-name/kt/ktls-utils/package.nix | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/by-name/kt/ktls-utils/package.nix b/pkgs/by-name/kt/ktls-utils/package.nix new file mode 100644 index 0000000000000..226c00373561a --- /dev/null +++ b/pkgs/by-name/kt/ktls-utils/package.nix @@ -0,0 +1,54 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, gnutls +, keyutils +, glib +, libnl +, systemd +, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd +}: + +stdenv.mkDerivation rec { + pname = "ktls-utils"; + version = "0.10"; + + src = fetchFromGitHub { + owner = "oracle"; + repo = "ktls-utils"; + rev = "ktls-utils-${version}"; + hash = "sha256-1HceFajSSq1D3IMeGQF+i/iW1lL2opLLWFfsRHW9atg="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + gnutls + keyutils + glib + libnl + ]; + + outputs = [ "out" "man" ]; + + configureFlags = lib.optional withSystemd [ "--with-systemd" ]; + + makeFlags = lib.optional withSystemd [ "unitdir=$(out)/lib/systemd/system" ]; + + doCheck = true; + + meta = with lib; { + description = "TLS handshake utilities for in-kernel TLS consumers"; + homepage = "https://github.com/oracle/ktls-utils"; + changelog = "https://github.com/oracle/ktls-utils/blob/${src.rev}/NEWS"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ ]; + mainProgram = "ktls-utils"; + platforms = platforms.linux; + }; +} |