chrony: 2.4.1 -> 3.0, enable seccomp
This commit is contained in:
parent
9ac6297b79
commit
1d251e268c
@ -1,25 +1,26 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libcap, readline, texinfo, nss, nspr }:
|
||||
{ stdenv, fetchurl, pkgconfig, libcap, readline, texinfo, nss, nspr
|
||||
, libseccomp }:
|
||||
|
||||
assert stdenv.isLinux -> libcap != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "chrony-${version}";
|
||||
|
||||
version = "2.4.1";
|
||||
version = "3.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.tuxfamily.org/chrony/${name}.tar.gz";
|
||||
sha256 = "1q5nxl19fdppwpxancff5dc9crgma8f24zww7ag4bd15yq79xm8g";
|
||||
sha256 = "0vfdsajz2w6b7c94rxrj7fsr234jryhl2rbdlmb7h10gla8pnf50";
|
||||
};
|
||||
|
||||
buildInputs = [ readline texinfo nss nspr ] ++ stdenv.lib.optional stdenv.isLinux libcap;
|
||||
buildInputs = [ readline texinfo nss nspr ]
|
||||
++ stdenv.lib.optionals stdenv.isLinux [ libcap libseccomp ];
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
hardeningEnable = [ "pie" ];
|
||||
|
||||
configureFlags = [
|
||||
"--chronyvardir=$(out)/var/lib/chrony"
|
||||
];
|
||||
configureFlags = [ "--chronyvardir=$(out)/var/lib/chrony" ]
|
||||
++ stdenv.lib.optional stdenv.isLinux [ "--enable-scfilter" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Sets your computer's clock from time servers on the Net";
|
||||
|
Loading…
Reference in New Issue
Block a user