pingtcp: use fetchFromGitHub instead of fetchgit

This commit is contained in:
schneefux 2018-10-08 13:30:33 +02:00
parent aa5fd37bba
commit b7d587fff7

View File

@ -1,14 +1,15 @@
{ stdenv, fetchgit, cmake }: { stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "pingtcp-${version}"; name = "pingtcp-${version}";
version = "0.0.3"; version = "0.0.3";
# This project uses git submodules, which fetchFromGitHub doesn't support: src = fetchFromGitHub {
src = fetchgit { owner = "LanetNetwork";
repo = "pingtcp";
sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8"; sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
url = "https://github.com/LanetNetwork/pingtcp.git"; fetchSubmodules = true;
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];