Commit c7b82432 authored by Adrian Pistol's avatar Adrian Pistol
Browse files

chrony: run nixfmt-rfc-style

parent d2255aec
Loading
Loading
Loading
Loading
+43 −12
Original line number Diff line number Diff line
{ 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