at 16.09-beta 30 lines 855 B view raw
1{ stdenv, fetchurl, libsodium, pkgconfig, systemd }: 2 3with stdenv.lib; 4 5stdenv.mkDerivation rec { 6 name = "dnscrypt-proxy-${version}"; 7 version = "1.7.0"; 8 9 src = fetchurl { 10 url = "https://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2"; 11 sha256 = "1qw2nib0d5ia8581lbdnjxgn9c7pf2qw8vhpnnh1wjcjj3gpgbqx"; 12 }; 13 14 configureFlags = optional stdenv.isLinux "--with-systemd"; 15 16 nativeBuildInputs = [ pkgconfig ]; 17 18 buildInputs = [ libsodium ] ++ optional stdenv.isLinux systemd; 19 20 outputs = [ "out" "man" ]; 21 22 meta = { 23 description = "A tool for securing communications between a client and a DNS resolver"; 24 homepage = https://dnscrypt.org/; 25 license = licenses.isc; 26 maintainers = with maintainers; [ joachifm jgeerds ]; 27 # upstream claims OSX support, but Hydra fails 28 platforms = with platforms; allBut darwin; 29 }; 30}