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

37 lines
762 B
Nix
Raw Normal View History

2022-02-16 04:36:33 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libelf
, libpcap
}:
2017-09-11 13:13:08 +00:00
stdenv.mkDerivation rec {
pname = "dynamips";
2019-07-12 20:40:07 +00:00
version = "0.2.21";
2017-09-11 13:13:08 +00:00
src = fetchFromGitHub {
owner = "GNS3";
repo = pname;
rev = "v${version}";
2022-02-16 04:36:33 +00:00
hash = "sha256-JQJa3NZ9mQqqvuTzU7XmAr1WRB4zuLIwBx18OY3GbV8=";
2017-09-11 13:13:08 +00:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libelf libpcap ];
cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ];
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;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}