@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, cmake
1+{ stdenv, fetchFromGitHub, cmake
22, libsodium, mbedtls, libev, c-ares, pcre
33, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, libxslt
44}:
@@ -8,11 +8,12 @@ stdenv.mkDerivation rec {
88 version = "3.2.0";
99
1010 # Git tag includes CMake build files which are much more convenient.
11− # fetchgit because submodules.
12− src = fetchgit {
13− url = "https://github.com/shadowsocks/shadowsocks-libev";
11+ src = fetchFromGitHub {
12+ owner = "shadowsocks";
13+ repo = "shadowsocks-libev";
1414 rev = "refs/tags/v${version}";
1515 sha256 = "0i9vz5b2c2bkdl2k9kqzvqyrlpdl94lf7k7rzxds8hn2kk0jizhb";
16+ fetchSubmodules = true;
1617 };
1718
1819 buildInputs = [ libsodium mbedtls libev c-ares pcre ];