forked from mirrors/nixpkgs
dnscrypt-proxy: refactorings
- move build deps to nativeBuildInputs - use https urls
This commit is contained in:
parent
60a6f4c3f1
commit
b3592d0b20
|
@ -1,25 +1,29 @@
|
||||||
{ stdenv, fetchurl, libsodium, pkgconfig, systemd }:
|
{ stdenv, fetchurl, libsodium, pkgconfig, systemd }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "dnscrypt-proxy-${version}";
|
name = "dnscrypt-proxy-${version}";
|
||||||
version = "1.6.1";
|
version = "1.6.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2";
|
url = "https://download.dnscrypt.org/dnscrypt-proxy/${name}.tar.bz2";
|
||||||
sha256 = "16lif3qhyfjpgg54vjlwpslxk90akmbhlpnn1szxm628bmpw6nl9";
|
sha256 = "16lif3qhyfjpgg54vjlwpslxk90akmbhlpnn1szxm628bmpw6nl9";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = ''
|
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 = {
|
meta = {
|
||||||
description = "A tool for securing communications between a client and a DNS resolver";
|
description = "A tool for securing communications between a client and a DNS resolver";
|
||||||
homepage = http://dnscrypt.org/;
|
homepage = https://dnscrypt.org/;
|
||||||
license = stdenv.lib.licenses.isc;
|
license = licenses.isc;
|
||||||
maintainers = with stdenv.lib.maintainers; [ joachifm jgeerds ];
|
maintainers = with maintainers; [ joachifm jgeerds ];
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue