2024-09-22 18:23:07 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
cmake,
|
|
|
|
fetchFromGitHub,
|
|
|
|
libelf,
|
|
|
|
libpcap,
|
|
|
|
nix-update-script,
|
2022-02-16 04:36:33 +00:00
|
|
|
}:
|
2017-09-11 13:13:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dynamips";
|
2023-01-04 22:46:35 +00:00
|
|
|
version = "0.2.23";
|
2017-09-11 13:13:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GNS3";
|
2024-09-22 18:23:07 +00:00
|
|
|
repo = "dynamips";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-04 22:46:35 +00:00
|
|
|
hash = "sha256-+h+WsZ/QrDd+dNrR6CJb2uMG+vbUvK8GTxFJZOxknL0=";
|
2017-09-11 13:13:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2024-09-22 18:23:07 +00:00
|
|
|
buildInputs = [
|
|
|
|
libelf
|
|
|
|
libpcap
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeFeature "DYNAMIPS_CODE" "stable")
|
|
|
|
];
|
2017-09-11 13:13:08 +00:00
|
|
|
|
2023-01-04 22:46:35 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-11 13:13:08 +00:00
|
|
|
description = "Cisco router emulator";
|
|
|
|
longDescription = ''
|
|
|
|
Dynamips is an emulator computer program that was written to emulate Cisco
|
|
|
|
routers.
|
|
|
|
'';
|
2024-09-22 18:23:07 +00:00
|
|
|
homepage = "https://github.com/GNS3/dynamips";
|
|
|
|
changelog = "https://github.com/GNS3/dynamips/releases/tag/v${version}";
|
2017-09-11 13:13:08 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2023-09-21 08:42:30 +00:00
|
|
|
mainProgram = "dynamips";
|
2024-09-22 18:29:31 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
primeos
|
|
|
|
anthonyroussel
|
|
|
|
];
|
2023-09-21 08:19:41 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2017-09-11 13:13:08 +00:00
|
|
|
};
|
|
|
|
}
|