Files
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.

53 lines
1.0 KiB
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
cmake,
fetchFromGitHub,
libelf,
libpcap,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "dynamips";
version = "0.2.23";
src = fetchFromGitHub {
owner = "GNS3";
repo = "dynamips";
tag = "v${version}";
hash = "sha256-+h+WsZ/QrDd+dNrR6CJb2uMG+vbUvK8GTxFJZOxknL0=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
libelf
libpcap
];
cmakeFlags = [
(lib.cmakeFeature "DYNAMIPS_CODE" "stable")
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
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}";
license = lib.licenses.gpl2Plus;
mainProgram = "dynamips";
maintainers = with lib.maintainers; [
anthonyroussel
];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}