1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/tools/networking/openntpd/default.nix
aszlig 3fbb9f0502
Add new openntpd package in version 20080406p-10.
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>
2014-09-01 16:07:27 +02:00

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)";
};
}