summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-10-22 14:55:09 +0200
committertv <tv@krebsco.de>2016-10-22 17:50:57 +0200
commit183b9d64bf0406d4ea722e2157483e0d47217aae (patch)
treed032855b8c76c4431de3d64596cccb46537eeab8 /tv
parent30fe90d4c7f2aad36527accdc12a0718c02bd143 (diff)
tv djbdns: init at 1.05
Diffstat (limited to 'tv')
-rw-r--r--tv/5pkgs/djbdns/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/tv/5pkgs/djbdns/default.nix b/tv/5pkgs/djbdns/default.nix
new file mode 100644
index 000000000..ad5a530bd
--- /dev/null
+++ b/tv/5pkgs/djbdns/default.nix
@@ -0,0 +1,20 @@
+{ coreutils, gawk, fetchurl, stdenv, ... }:
+
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+ name = "djbdns-1.05";
+ src = fetchurl {
+ url = "http://cr.yp.to/djbdns/djbdns-1.05.tar.gz";
+ sha256 = "0j3baf92vkczr5fxww7rp1b7gmczxmmgrqc8w2dy7kgk09m85k9w";
+ };
+ configurePhase = ''
+ echo $out > conf-home
+ echo gcc -O2 -include errno.h > conf-cc
+ '';
+ patchPhase = ''
+ sed -i 's:c("/","etc","dnsroots.global",-1,-1,0644);:// &:' hier.c
+ sed -i '1s@^@PATH=${makeBinPath [ coreutils gawk ]}\n@' dnstracesort.sh
+ '';
+ installTargets = "setup check";
+}