2020-12-25 13:55:36 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vpcs";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "0.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GNS3";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0kqy4bd3ns8nzn7fa72izn7a08sfrasy1rn7fd8ajah2wv8d2cak";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''(
|
|
|
|
cd src
|
|
|
|
./mk.sh ${stdenv.buildPlatform.platform.kernelArch}
|
|
|
|
)'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -m555 src/vpcs $out/bin/vpcs;
|
|
|
|
install -D -m444 man/vpcs.1 $out/share/man/man1/vpcs.1;
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
description = "A simple virtual PC simulator";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2020-12-25 13:55:36 +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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-12-25 13:55:36 +00:00
|
|
|
inherit (src.meta) homepage;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|