diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2017-09-11 18:48:13 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2017-09-11 18:54:30 +0200 |
commit | 6373c9606d1cadceaa9831c1507341aea2b51487 (patch) | |
tree | 5113e32b2fb47ed838d7ea93e25b3eb6743603e4 /pkgs/applications/virtualization/vpcs/default.nix | |
parent | f717af03ad85119f24cafc6eeef9ac2120602ab4 (diff) |
vpcs: init at 0.8
Diffstat (limited to 'pkgs/applications/virtualization/vpcs/default.nix')
-rw-r--r-- | pkgs/applications/virtualization/vpcs/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/vpcs/default.nix b/pkgs/applications/virtualization/vpcs/default.nix new file mode 100644 index 0000000000000..cac997e43b562 --- /dev/null +++ b/pkgs/applications/virtualization/vpcs/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchurl, cmake, glibc, buildPlatform }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "vpcs"; + version = "0.8"; + + src = fetchurl { + url = "mirror://sourceforge/project/${pname}/${version}/${name}-src.tbz"; + sha256 = "14y9nflcyq486vvw0na0fkfmg5dac004qb332v4m5a0vaz8059nw"; + }; + + unpackCmd = "tar -xjf $src"; + + buildInputs = [ glibc.static ]; + + buildPhase = '' + cd src + ./mk.sh ${buildPlatform.platform.kernelArch} + ''; + + installPhase = '' + cd .. + + install -D -m555 src/vpcs $out/bin/vpcs; + install -D -m444 man/vpcs.1 $out/share/man/man1/vpcs.1; + ''; + + 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 ]; + }; +} |