2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libelf, libpcap }:
|
2017-09-11 13:13:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dynamips";
|
2019-07-12 20:40:07 +00:00
|
|
|
version = "0.2.21";
|
2017-09-11 13:13:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GNS3";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-07-12 20:40:07 +00:00
|
|
|
sha256 = "0pvdqs6kjz0x0wqb5f1k3r25dg82wssm7wz4psm0m6bxsvf5l0i5";
|
2017-09-11 13:13:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libelf libpcap ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-11 13:13:08 +00:00
|
|
|
description = "A Cisco router emulator";
|
|
|
|
longDescription = ''
|
|
|
|
Dynamips is an emulator computer program that was written to emulate Cisco
|
|
|
|
routers.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|