2017-09-11 14:13:08 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libelf, libpcap }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "dynamips";
|
2019-02-20 19:32:57 +00:00
|
|
|
version = "0.2.20";
|
2017-09-11 14:13:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GNS3";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-02-20 19:32:57 +00:00
|
|
|
sha256 = "1841h0m0k0p3c3ify4imafjk7jigcj2zlr8rn3iyp7jnafkxqik7";
|
2017-09-11 14:13:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libelf libpcap ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|