1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

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 {
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 ];