2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2017-09-11 17:48:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vpcs";
|
2021-08-24 17:41:27 +01:00
|
|
|
version = "0.8.2";
|
2017-09-11 17:48:13 +01:00
|
|
|
|
2020-12-18 19:30:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GNS3";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-24 17:41:27 +01:00
|
|
|
sha256 = "sha256-joEXRMtNZMQumkYDX1gdpGAV+XdNKiAMj3dh1GZxeqc=";
|
2017-09-11 17:48:13 +01:00
|
|
|
};
|
|
|
|
|
2017-11-16 12:30:14 +00:00
|
|
|
buildPhase = ''(
|
2017-09-11 17:48:13 +01:00
|
|
|
cd src
|
2021-01-23 01:33:55 +00:00
|
|
|
./mk.sh ${stdenv.buildPlatform.linuxArch}
|
2017-11-16 12:30:14 +00:00
|
|
|
)'';
|
2017-09-11 17:48:13 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -m555 src/vpcs $out/bin/vpcs;
|
|
|
|
install -D -m444 man/vpcs.1 $out/share/man/man1/vpcs.1;
|
|
|
|
'';
|
|
|
|
|
2017-11-16 12:30:14 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-18 19:30:46 +00:00
|
|
|
description = "A simple virtual PC simulator";
|
2017-09-11 17:48:13 +01:00
|
|
|
longDescription = ''
|
2020-12-18 19:30:46 +00:00
|
|
|
The VPCS (Virtual PC Simulator) can simulate up to 9 PCs. You can
|
|
|
|
ping/traceroute them, or ping/traceroute the other hosts/routers from the
|
|
|
|
VPCS when you study the Cisco routers in the dynamips.
|
2017-09-11 17:48:13 +01:00
|
|
|
'';
|
2020-12-18 19:30:46 +00:00
|
|
|
inherit (src.meta) homepage;
|
2017-09-11 17:48:13 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2021-08-24 20:57:29 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-09-11 17:48:13 +01:00
|
|
|
};
|
|
|
|
}
|