nixpkgs/pkgs/applications/emulators/dynamips/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
895 B
Nix
Raw Normal View History

2022-02-16 04:36:33 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libelf
, libpcap
2023-01-04 22:46:35 +00:00
, 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";
repo = pname;
rev = "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 ];
buildInputs = [ libelf libpcap ];
cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ];
2023-01-04 22:46:35 +00:00
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
2022-02-16 04:36:33 +00:00
inherit (src.meta) homepage;
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.
'';
license = licenses.gpl2Plus;
2023-09-21 08:42:30 +00:00
mainProgram = "dynamips";
2017-09-11 13:13:08 +00:00
maintainers = with maintainers; [ primeos ];
2023-09-21 08:19:41 +00:00
platforms = platforms.linux ++ platforms.darwin;
2017-09-11 13:13:08 +00:00
};
}