From b7d587fff77a6c7a4d90ef3f8394b71c98f73c77 Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 8 Oct 2018 13:30:33 +0200 Subject: [PATCH] pingtcp: use fetchFromGitHub instead of fetchgit --- pkgs/tools/networking/pingtcp/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/pingtcp/default.nix b/pkgs/tools/networking/pingtcp/default.nix index 8fb9b066bf1c..2d13515d83d7 100644 --- a/pkgs/tools/networking/pingtcp/default.nix +++ b/pkgs/tools/networking/pingtcp/default.nix @@ -1,14 +1,15 @@ -{ stdenv, fetchgit, cmake }: +{ stdenv, fetchFromGitHub, cmake }: stdenv.mkDerivation rec { name = "pingtcp-${version}"; version = "0.0.3"; - # This project uses git submodules, which fetchFromGitHub doesn't support: - src = fetchgit { + src = fetchFromGitHub { + owner = "LanetNetwork"; + repo = "pingtcp"; sha256 = "1cv84n30y03s1b83apxxyn2jv5ss1pywsahrfrpkb6zcgzzrcqn8"; rev = "refs/tags/v${version}"; - url = "https://github.com/LanetNetwork/pingtcp.git"; + fetchSubmodules = true; }; nativeBuildInputs = [ cmake ];