2018-08-20 19:43:41 +01:00
|
|
|
{ stdenv, fetchurl, glibc }:
|
2017-09-11 17:48:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vpcs";
|
|
|
|
version = "0.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
name = "${pname}-${version}.tar.bz2";
|
|
|
|
url = "mirror://sourceforge/project/${pname}/${version}/${pname}-${version}-src.tbz";
|
2017-09-11 17:48:13 +01:00
|
|
|
sha256 = "14y9nflcyq486vvw0na0fkfmg5dac004qb332v4m5a0vaz8059nw";
|
|
|
|
};
|
|
|
|
|
2017-11-16 12:30:14 +00:00
|
|
|
patches = [ ./vpcs-0.8-glibc-2.26.patch ];
|
2017-09-11 17:48:13 +01:00
|
|
|
|
|
|
|
buildInputs = [ glibc.static ];
|
|
|
|
|
2017-11-16 12:30:14 +00:00
|
|
|
buildPhase = ''(
|
2017-09-11 17:48:13 +01:00
|
|
|
cd src
|
2018-08-20 19:43:41 +01:00
|
|
|
./mk.sh ${stdenv.buildPlatform.platform.kernelArch}
|
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;
|
|
|
|
|
2017-09-11 17:48:13 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Virtual PC simulator";
|
|
|
|
longDescription = ''
|
|
|
|
The VPCS 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.
|
|
|
|
'';
|
|
|
|
homepage = "https://sourceforge.net/projects/vpcs/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|