shadowsocks-libev: use fetchFromGitHub instead of fetchgit

This commit is contained in:
schneefux 2018-10-08 13:34:47 +02:00
parent 8d4c3a08e3
commit 027ee440b5

View File

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