diff --git a/pkgs/tools/networking/dnscrypt-proxy/default.nix b/pkgs/tools/networking/dnscrypt-proxy/default.nix index b98570a7341b..380dd6764119 100644 --- a/pkgs/tools/networking/dnscrypt-proxy/default.nix +++ b/pkgs/tools/networking/dnscrypt-proxy/default.nix @@ -1,25 +1,29 @@ { stdenv, fetchurl, libsodium, pkgconfig, systemd }: +with stdenv.lib; + stdenv.mkDerivation rec { name = "dnscrypt-proxy-${version}"; version = "1.6.1"; src = fetchurl { - url = "http://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2"; + url = "https://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2"; sha256 = "16lif3qhyfjpgg54vjlwpslxk90akmbhlpnn1szxm628bmpw6nl9"; }; configureFlags = '' - ${stdenv.lib.optionalString stdenv.isLinux "--with-systemd"} + ${optionalString stdenv.isLinux "--with-systemd"} ''; - buildInputs = [ pkgconfig libsodium ] ++ stdenv.lib.optional stdenv.isLinux systemd; + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ libsodium ] ++ optional stdenv.isLinux systemd; meta = { description = "A tool for securing communications between a client and a DNS resolver"; - homepage = http://dnscrypt.org/; - license = stdenv.lib.licenses.isc; - maintainers = with stdenv.lib.maintainers; [ joachifm jgeerds ]; - platforms = stdenv.lib.platforms.all; + homepage = https://dnscrypt.org/; + license = licenses.isc; + maintainers = with maintainers; [ joachifm jgeerds ]; + platforms = platforms.all; }; }