mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, gnutls
|
|
, keyutils
|
|
, glib
|
|
, libnl
|
|
, systemd
|
|
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
|
|
, nix-update-script
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ktls-utils";
|
|
version = "0.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oracle";
|
|
repo = "ktls-utils";
|
|
rev = "ktls-utils-${version}";
|
|
hash = "sha256-QPKBJEuXYDuOhlFhc0zQ4hAq1owFNe9b3BUKliNFgu0=";
|
|
};
|
|
|
|
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;
|
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
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 = [ ];
|
|
mainProgram = "ktls-utils";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|