nixpkgs/pkgs/applications/virtualization/vpcs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
975 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2017-09-11 18:48:13 +02:00
stdenv.mkDerivation rec {
pname = "vpcs";
2021-08-24 18:41:27 +02:00
version = "0.8.2";
2017-09-11 18:48:13 +02:00
src = fetchFromGitHub {
owner = "GNS3";
repo = pname;
rev = "v${version}";
2021-08-24 18:41:27 +02:00
sha256 = "sha256-joEXRMtNZMQumkYDX1gdpGAV+XdNKiAMj3dh1GZxeqc=";
2017-09-11 18:48:13 +02:00
};
buildPhase = ''(
2017-09-11 18:48:13 +02:00
cd src
./mk.sh ${stdenv.buildPlatform.linuxArch}
)'';
2017-09-11 18:48:13 +02:00
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";
2017-09-11 18:48:13 +02:00
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.
2017-09-11 18:48:13 +02:00
'';
inherit (src.meta) homepage;
2017-09-11 18:48:13 +02:00
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
2017-09-11 18:48:13 +02:00
};
}