blob: 464fe46b499c802ffa3ccab98c2d41e4e09b110a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv, fetchurl, glibc }:
stdenv.mkDerivation rec {
pname = "vpcs";
version = "0.8";
src = fetchurl {
name = "${pname}-${version}.tar.bz2";
url = "mirror://sourceforge/project/${pname}/${version}/${pname}-${version}-src.tbz";
sha256 = "14y9nflcyq486vvw0na0fkfmg5dac004qb332v4m5a0vaz8059nw";
};
patches = [ ./vpcs-0.8-glibc-2.26.patch ];
buildInputs = [ glibc.static ];
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; {
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 ];
};
}
|