chrony: run nixfmt-rfc-style

This commit is contained in:
Adrian Pistol 2024-10-09 18:47:37 +02:00
parent d2255aecf2
commit c7b8243250

View File

@ -1,7 +1,18 @@
{ lib, stdenv, fetchurl, pkg-config
, gnutls, libedit, nspr, nss, readline, texinfo
, libcap, libseccomp, pps-tools
, nixosTests
{
lib,
stdenv,
fetchurl,
pkg-config,
gnutls,
libedit,
nspr,
nss,
readline,
texinfo,
libcap,
libseccomp,
pps-tools,
nixosTests,
}:
stdenv.mkDerivation rec {
@ -13,12 +24,27 @@ stdenv.mkDerivation rec {
hash = "sha256-Gf4dn0Zk1EWmmpbHHo/bYLzY3yTHPROG4CKH9zZq1CI=";
};
outputs = [ "out" "man" ];
outputs = [
"out"
"man"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gnutls libedit nspr nss readline texinfo ]
++ lib.optionals stdenv.hostPlatform.isLinux [ libcap libseccomp pps-tools ];
buildInputs =
[
gnutls
libedit
nspr
nss
readline
texinfo
]
++ lib.optionals stdenv.hostPlatform.isLinux [
libcap
libseccomp
pps-tools
];
configureFlags = [
"--enable-ntp-signd"
@ -37,14 +63,19 @@ stdenv.mkDerivation rec {
hardeningEnable = [ "pie" ];
passthru.tests = { inherit (nixosTests) chrony chrony-ptp; };
passthru.tests = {
inherit (nixosTests) chrony chrony-ptp;
};
meta = with lib; {
meta = {
description = "Sets your computer's clock from time servers on the Net";
homepage = "https://chrony.tuxfamily.org/";
license = licenses.gpl2Only;
platforms = with platforms; linux ++ freebsd ++ openbsd;
maintainers = with maintainers; [ fpletz thoughtpolice ];
license = lib.licenses.gpl2Only;
platforms = with lib.platforms; linux ++ freebsd ++ openbsd;
maintainers = with lib.maintainers; [
fpletz
thoughtpolice
];
longDescription = ''
Chronyd is a daemon which runs in background on the system. It obtains