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:
parent
aa5fd37bba
commit
b7d587fff7
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue