@@ -1,21 +1,24 @@
1−{ stdenv, fetchurl, libsodium, libevent, pkgconfig, autoreconfHook }:
1+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libsodium, libevent }:
22
33stdenv.mkDerivation rec {
44 name = "dnscrypt-wrapper-${version}";
55 version = "0.2";
66
7− src = fetchurl {
8− url = "https://github.com/Cofyc/dnscrypt-wrapper/releases/download/v0.2/dnscrypt-wrapper-v0.2.tar.bz2";
9− sha256 = "0kh52dc0v9lxwi39y88z0ab6bwa5bcw8b24psnz72fv555irsvyj";
7+ src = fetchFromGitHub {
8+ owner = "Cofyc";
9+ repo = "dnscrypt-wrapper";
10+ rev = "v${version}";
11+ sha256 = "06m6p79y0p6f1knk40fbi7dnc5hnq066kafvrq74fxrl51nywjbg";
1012 };
1113
12− buildInputs = [ pkgconfig autoreconfHook libsodium libevent ];
14+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
15+ buildInputs = [ libsodium libevent ];
1316
14− meta = {
17+ meta = with stdenv.lib; {
1518 description = "A tool for adding dnscrypt support to any name resolver";
16− homepage = http://dnscrypt.org/;
17− license = stdenv.lib.licenses.gpl2;
18− maintainers = with stdenv.lib.maintainers; [ tstrobel ];
19− platforms = stdenv.lib.platforms.linux;
19+ homepage = https://dnscrypt.org/;
20+ license = licenses.gpl2;
21+ maintainers = with maintainers; [ tstrobel joachifm ];
22+ platforms = platforms.linux;
2023 };
2124}