From 027ee440b5b0d48ecadd089fde4d36427f378460 Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 8 Oct 2018 13:34:47 +0200 Subject: [PATCH] shadowsocks-libev: use fetchFromGitHub instead of fetchgit --- pkgs/tools/networking/shadowsocks-libev/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/shadowsocks-libev/default.nix b/pkgs/tools/networking/shadowsocks-libev/default.nix index 09fa69dd37c4..7e6c5f56dc77 100644 --- a/pkgs/tools/networking/shadowsocks-libev/default.nix +++ b/pkgs/tools/networking/shadowsocks-libev/default.nix @@ -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 ];