diff options
author | lassulus <lass@aidsballs.de> | 2016-10-23 05:55:30 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-10-23 05:55:30 +0200 |
commit | af206b48225abdaa6596d4974bfaf112c5fff5ab (patch) | |
tree | 3ba4925bd1c3e859d2ff1d4a3c5a4f167078788e /tv/5pkgs/djbdns/default.nix | |
parent | 384c96efd288c44b285d20ca8f5390b9d03af6d6 (diff) | |
parent | 7cc65e17941978cca54ae62772cb1fd13c1b2996 (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'tv/5pkgs/djbdns/default.nix')
-rw-r--r-- | tv/5pkgs/djbdns/default.nix | 20 |
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"; +} |