pps-tools: init at 1.0.2, enable for chrony, gpsd, ntp (#42889)

This commit is contained in:
Richard Marko
2018-07-04 11:28:07 +00:00
committed by Orivej Desh (NixOS)
parent 45f8c2ac29
commit 91575dd285
6 changed files with 66 additions and 8 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, openssl, perl, libcap ? null, libseccomp ? null }:
{ stdenv, lib, fetchurl, openssl, perl, libcap ? null, libseccomp ? null, pps-tools }:
assert stdenv.isLinux -> libcap != null;
assert stdenv.isLinux -> libseccomp != null;
@@ -28,7 +28,9 @@ stdenv.mkDerivation rec {
] ++ stdenv.lib.optional stdenv.isLinux "--enable-linuxcaps"
++ stdenv.lib.optional withSeccomp "--enable-libseccomp";
buildInputs = [ libcap openssl perl ] ++ lib.optional withSeccomp libseccomp;
buildInputs = [ libcap openssl perl ]
++ lib.optional withSeccomp libseccomp
++ lib.optional stdenv.isLinux pps-tools;
hardeningEnable = [ "pie" ];