nixpkgs/pkgs/by-name/dy/dynamips/package.nix

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

54 lines
1.1 KiB
Nix
Raw Normal View History

{
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";
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 ];
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 { };
};
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.
'';
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";
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
};
}