2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, gnutls
|
|
|
|
, keyutils
|
|
|
|
, glib
|
|
|
|
, libnl
|
|
|
|
, systemd
|
|
|
|
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
|
2024-04-21 15:54:59 +00:00
|
|
|
, nix-update-script
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ktls-utils";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.11";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oracle";
|
|
|
|
repo = "ktls-utils";
|
|
|
|
rev = "ktls-utils-${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-QPKBJEuXYDuOhlFhc0zQ4hAq1owFNe9b3BUKliNFgu0=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|