1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/tools/networking/openntpd/default.nix
2015-04-08 15:11:45 -07:00

37 lines
831 B
Nix

{ stdenv, fetchurl, openssl
, privsepPath ? "/var/empty"
, privsepUser ? "ntp"
}:
stdenv.mkDerivation rec {
name = "openntpd-${version}";
version = "5.7p4";
src = fetchurl {
url = "mirror://openbsd/OpenNTPD/${name}.tar.gz";
sha256 = "08ybpi351284wj53qqrmg13j8l7md397yrqsmg0aqxg3frcxk4x9";
};
configureFlags = [
"--with-privsep-path=${privsepPath}"
"--with-privsep-user=${privsepUser}"
"--sysconfdir=/etc"
"--localstatedir=/var"
];
buildInputs = [ openssl ];
installFlags = [
"sysconfdir=\${out}/etc"
"localstatedir=\${TMPDIR}"
];
meta = with stdenv.lib; {
homepage = "http://www.openntpd.org/";
license = licenses.bsd3;
description = "OpenBSD NTP daemon (Debian port)";
platforms = platforms.all;
maintainers = with maintainers; [ wkennington ];
};
}