at 18.03-beta 37 lines 1.1 kB view raw
1{ stdenv, fetchurl, pkgconfig, libsodium, ldns, openssl, systemd }: 2 3with stdenv.lib; 4 5stdenv.mkDerivation rec { 6 name = "dnscrypt-proxy-${version}"; 7 version = "1.9.5"; 8 9 src = fetchurl { 10 url = "https://launchpad.net/ubuntu/+archive/primary/+files/${name}.orig.tar.gz"; 11 sha256 = "1dhvklr4dg2vlw108n11xbamacaryyg3dbrg629b76lp7685p7z8"; 12 }; 13 14 enableParallelBuilding = true; 15 16 configureFlags = optional stdenv.isLinux "--with-systemd"; 17 18 nativeBuildInputs = [ pkgconfig ]; 19 20 # <ldns/ldns.h> depends on <openssl/ssl.h> 21 buildInputs = [ libsodium openssl.dev ldns ] ++ optional stdenv.isLinux systemd; 22 23 postInstall = '' 24 # Previous versions required libtool files to load plugins; they are 25 # now strictly optional. 26 rm $out/lib/dnscrypt-proxy/*.la 27 ''; 28 29 meta = { 30 description = "A tool for securing communications between a client and a DNS resolver"; 31 homepage = https://dnscrypt.org/; 32 license = licenses.isc; 33 maintainers = with maintainers; [ joachifm jgeerds ]; 34 # upstream claims OSX support, but Hydra fails 35 platforms = with platforms; allBut darwin; 36 }; 37}