@@ -1,17 +1,22 @@
1−{ stdenv, fetchurl, systemd, pkgconfig }:
1+{ stdenv, fetchFromGitHub, autoreconfHook, systemd, pkgconfig }:
3stdenv.mkDerivation rec {
5stdenv.mkDerivation rec {
4 version = "1.06";
6 version = "1.06";
5 name = "ndjbdns-${version}";
7 name = "ndjbdns-${version}";
7− src = fetchurl {
9+ src = fetchFromGitHub {
8− url = "http://pjp.dgplug.org/ndjbdns/${name}.tar.gz";
10+ owner = "pjps";
9− sha256 = "09qi5a9abqm08iqmxj74fzzq9x1w5lzr1jlbzj2hl8hz0g2sgraw";
11+ repo = "ndjbdns";
12+ rev = "64d371b6f887621de7bf8bd495be10442b2accd0";
13+ sha256 = "0gjyvn8r66kp49gasd6sqfvg2pj0c6v67hnq7cqwl04kj69rfy86";
12− buildInputs = [ pkgconfig systemd ];
16+ buildInputs = [ autoreconfHook pkgconfig ]
17+ ++ optional stdenv.isLinux systemd;
14− meta = with stdenv.lib; {
19+ meta = {
15 description = "A brand new release of the Djbdns";
20 description = "A brand new release of the Djbdns";
16 longDescription = ''
21 longDescription = ''
17 Djbdns is a fully‐fledged Domain Name System(DNS), originally written by the eminent author of qmail, Dr. D J Bernstein.
22 Djbdns is a fully‐fledged Domain Name System(DNS), originally written by the eminent author of qmail, Dr. D J Bernstein.
@@ -19,7 +24,7 @@ stdenv.mkDerivation rec {
19 homepage = http://pjp.dgplug.org/ndjbdns/;
24 homepage = http://pjp.dgplug.org/ndjbdns/;
20 license = licenses.gpl2;
25 license = licenses.gpl2;
21 maintainers = [ maintainers.msackman ];
26 maintainers = [ maintainers.msackman ];
22− platforms = platforms.linux;
27+ platforms = platforms.linux ++ platforms.darwin;