Merge pull request #48044 from schneefux/pkg/fetchfromgithub

treewide: Use fetchFromGitHub instead of fetchurl
This commit is contained in:
Renaud
2018-11-14 09:48:22 +01:00
committed by GitHub
11 changed files with 70 additions and 52 deletions
@@ -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 ];