depot/third_party/nixpkgs/pkgs/applications/emulators/dynamips/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

42 lines
895 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, libelf
, libpcap
, nix-update-script
}:
stdenv.mkDerivation rec {
pname = "dynamips";
version = "0.2.23";
src = fetchFromGitHub {
owner = "GNS3";
repo = pname;
rev = "v${version}";
hash = "sha256-+h+WsZ/QrDd+dNrR6CJb2uMG+vbUvK8GTxFJZOxknL0=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libelf libpcap ];
cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
inherit (src.meta) homepage;
description = "A Cisco router emulator";
longDescription = ''
Dynamips is an emulator computer program that was written to emulate Cisco
routers.
'';
license = licenses.gpl2Plus;
mainProgram = "dynamips";
maintainers = with maintainers; [ primeos ];
platforms = platforms.linux ++ platforms.darwin;
};
}