summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2017-01-01 08:34:28 +0100
committerGitHub <noreply@github.com>2017-01-01 08:34:28 +0100
commitd5f8652e6dea234461564f634a67b877fe7e42ab (patch)
treebcb76c2af219e62695f44f97312c50df33c18421 /pkgs/tools
parentdd4bedba5223e7ec8de92aaa15c1f6a42f599cc3 (diff)
parent67337972484fbf4cc9870a8376837b4c46e23f89 (diff)
downloadnixpkgs-d5f8652e6dea234461564f634a67b877fe7e42ab.tar
nixpkgs-d5f8652e6dea234461564f634a67b877fe7e42ab.tar.gz
nixpkgs-d5f8652e6dea234461564f634a67b877fe7e42ab.tar.bz2
nixpkgs-d5f8652e6dea234461564f634a67b877fe7e42ab.tar.lz
nixpkgs-d5f8652e6dea234461564f634a67b877fe7e42ab.tar.xz
nixpkgs-d5f8652e6dea234461564f634a67b877fe7e42ab.tar.zst
nixpkgs-d5f8652e6dea234461564f634a67b877fe7e42ab.zip
Merge pull request #17364 from fmu/ndjbdns-fix
ndjbdns: build from latest sources which adds Darwin compatibility
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/ndjbdns/default.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/tools/networking/ndjbdns/default.nix b/pkgs/tools/networking/ndjbdns/default.nix
index 256f50e5c54..3269f92d7f4 100644
--- a/pkgs/tools/networking/ndjbdns/default.nix
+++ b/pkgs/tools/networking/ndjbdns/default.nix
@@ -1,17 +1,22 @@
-{ stdenv, fetchurl, systemd, pkgconfig }:
+{ stdenv, fetchFromGitHub, autoreconfHook, systemd, pkgconfig }:
+
+with stdenv.lib;
 
 stdenv.mkDerivation rec {
   version = "1.06";
   name = "ndjbdns-${version}";
 
-  src = fetchurl {
-    url = "http://pjp.dgplug.org/ndjbdns/${name}.tar.gz";
-    sha256 = "09qi5a9abqm08iqmxj74fzzq9x1w5lzr1jlbzj2hl8hz0g2sgraw";
+  src = fetchFromGitHub {
+    owner = "pjps";
+    repo = "ndjbdns";
+    rev = "64d371b6f887621de7bf8bd495be10442b2accd0";
+    sha256 = "0gjyvn8r66kp49gasd6sqfvg2pj0c6v67hnq7cqwl04kj69rfy86";
   };
 
-  buildInputs = [ pkgconfig systemd ];
+  buildInputs = [ autoreconfHook pkgconfig ]
+    ++ optional stdenv.isLinux systemd;
 
-  meta = with stdenv.lib; {
+  meta = {
     description = "A brand new release of the Djbdns";
     longDescription = ''
       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 {
     homepage = http://pjp.dgplug.org/ndjbdns/;
     license = licenses.gpl2;
     maintainers = [ maintainers.msackman ];
-    platforms = platforms.linux;
+    platforms = platforms.linux ++ platforms.darwin;
   };
 
 }