nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 pkg-config,
7 gnutls,
8 keyutils,
9 glib,
10 libnl,
11 systemd,
12 withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
13 nix-update-script,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "ktls-utils";
18 version = "1.2.1";
19
20 src = fetchFromGitHub {
21 owner = "oracle";
22 repo = "ktls-utils";
23 rev = "ktls-utils-${version}";
24 hash = "sha256-aCn9qBD1bh7VFSSrC1uR/XPfFI+YC/gylCr7tSs56VQ=";
25 };
26
27 nativeBuildInputs = [
28 autoreconfHook
29 pkg-config
30 ];
31
32 buildInputs = [
33 gnutls
34 keyutils
35 glib
36 libnl
37 ];
38
39 outputs = [
40 "out"
41 "man"
42 ];
43
44 configureFlags = lib.optional withSystemd [ "--with-systemd" ];
45
46 makeFlags = lib.optional withSystemd [ "unitdir=$(out)/lib/systemd/system" ];
47
48 doCheck = true;
49
50 passthru.updateScript = nix-update-script { };
51
52 meta = with lib; {
53 description = "TLS handshake utilities for in-kernel TLS consumers";
54 homepage = "https://github.com/oracle/ktls-utils";
55 changelog = "https://github.com/oracle/ktls-utils/blob/${src.rev}/NEWS";
56 license = licenses.gpl2Only;
57 maintainers = [ ];
58 mainProgram = "ktls-utils";
59 platforms = platforms.linux;
60 };
61}