mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 19:08:30 +00:00
3fbb9f0502
It's actually a fork from Debian who are providing cross-platform compatibility fixes for it. A big advantage is that it is far more minimal than the ntpd reference implementation and especially useful if you don't want to run an NTP service. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
33 lines
755 B
Nix
33 lines
755 B
Nix
{ stdenv, fetchgit, openssl
|
|
, privsepPath ? "/var/empty"
|
|
, privsepUser ? "ntp"
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "openntpd-${version}";
|
|
version = "20080406p-10";
|
|
|
|
src = fetchgit {
|
|
url = "git://git.debian.org/collab-maint/openntpd.git";
|
|
rev = "refs/tags/debian/${version}";
|
|
sha256 = "0gd6j4sw4x4adlz0jzbp6lblx5vlnk6l1034hzbj2xd95k8hjhh8";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i -e '/^install:/,/^$/{/@if.*PRIVSEP_PATH/,/^$/d}' Makefile.in
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-privsep-path=${privsepPath}"
|
|
"--with-privsep-user=${privsepUser}"
|
|
];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
meta = {
|
|
homepage = "http://www.openntpd.org/";
|
|
license = stdenv.lib.licenses.bsd3;
|
|
description = "OpenBSD NTP daemon (Debian port)";
|
|
};
|
|
}
|