shadowsocks-libev: use fetchFromGitHub instead of fetchgit
This commit is contained in:
parent
8d4c3a08e3
commit
027ee440b5
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchgit, cmake
|
{ stdenv, fetchFromGitHub, cmake
|
||||||
, libsodium, mbedtls, libev, c-ares, pcre
|
, libsodium, mbedtls, libev, c-ares, pcre
|
||||||
, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, libxslt
|
, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl, libxslt
|
||||||
}:
|
}:
|
||||||
|
@ -8,11 +8,12 @@ stdenv.mkDerivation rec {
|
||||||
version = "3.2.0";
|
version = "3.2.0";
|
||||||
|
|
||||||
# Git tag includes CMake build files which are much more convenient.
|
# Git tag includes CMake build files which are much more convenient.
|
||||||
# fetchgit because submodules.
|
src = fetchFromGitHub {
|
||||||
src = fetchgit {
|
owner = "shadowsocks";
|
||||||
url = "https://github.com/shadowsocks/shadowsocks-libev";
|
repo = "shadowsocks-libev";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "0i9vz5b2c2bkdl2k9kqzvqyrlpdl94lf7k7rzxds8hn2kk0jizhb";
|
sha256 = "0i9vz5b2c2bkdl2k9kqzvqyrlpdl94lf7k7rzxds8hn2kk0jizhb";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libsodium mbedtls libev c-ares pcre ];
|
buildInputs = [ libsodium mbedtls libev c-ares pcre ];
|
||||||
|
|
Loading…
Reference in a new issue