nixpkgs/pkgs/by-name/kt/ktls-utils/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-18 00:26:09 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, gnutls
, keyutils
, glib
, libnl
, systemd
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
2024-01-03 11:04:48 +00:00
, nix-update-script
2023-12-18 00:26:09 +00:00
}:
stdenv.mkDerivation rec {
pname = "ktls-utils";
2024-06-14 17:31:23 +01:00
version = "0.11";
2023-12-18 00:26:09 +00:00
src = fetchFromGitHub {
owner = "oracle";
repo = "ktls-utils";
rev = "ktls-utils-${version}";
2024-06-14 17:31:23 +01:00
hash = "sha256-QPKBJEuXYDuOhlFhc0zQ4hAq1owFNe9b3BUKliNFgu0=";
2023-12-18 00:26:09 +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-01-03 11:04:48 +00:00
passthru.updateScript = nix-update-script {};
2023-12-18 00:26:09 +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 = [ ];
2023-12-18 00:26:09 +00:00
mainProgram = "ktls-utils";
platforms = platforms.linux;
};
}