8 stdenv.mkDerivation (finalAttrs: {
12 src = fetchFromGitHub {
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-OKi4sC4fmKtkJkkpHZ6OfeIDaBafVrJXGXh1R6gLPFY=";
19 sourceRoot = "${finalAttrs.src.name}/src";
24 MKOPT="CC=${stdenv.cc.targetPrefix}cc" ./mk.sh ${stdenv.buildPlatform.linuxArch}
32 install -D -m555 vpcs $out/bin/vpcs
33 install -D -m444 ../man/vpcs.1 $out/share/man/man1/vpcs.1
38 enableParallelBuilding = true;
41 tests.version = testers.testVersion {
48 description = "A simple virtual PC simulator";
50 The VPCS (Virtual PC Simulator) can simulate up to 9 PCs. You can
51 ping/traceroute them, or ping/traceroute the other hosts/routers from the
52 VPCS when you study the Cisco routers in the dynamips.
54 inherit (finalAttrs.src.meta) homepage;
55 license = licenses.bsd2;
56 platforms = platforms.linux ++ platforms.darwin;
58 maintainers = with maintainers; [ anthonyroussel ];