mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:23:02 +00:00
f9dfb94bd2
I've stopped using GNS3.
39 lines
975 B
Nix
39 lines
975 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vpcs";
|
|
version = "0.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GNS3";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-joEXRMtNZMQumkYDX1gdpGAV+XdNKiAMj3dh1GZxeqc=";
|
|
};
|
|
|
|
buildPhase = ''(
|
|
cd src
|
|
./mk.sh ${stdenv.buildPlatform.linuxArch}
|
|
)'';
|
|
|
|
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 lib; {
|
|
description = "A simple virtual PC simulator";
|
|
longDescription = ''
|
|
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.
|
|
'';
|
|
inherit (src.meta) homepage;
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|