1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/virtualization/dynamips/default.nix

32 lines
794 B
Nix
Raw Normal View History

2017-09-11 14:13:08 +01:00
{ stdenv, fetchFromGitHub, cmake, libelf, libpcap }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "dynamips";
2019-01-19 16:08:23 +00:00
version = "0.2.19";
2017-09-11 14:13:08 +01:00
src = fetchFromGitHub {
owner = "GNS3";
repo = pname;
rev = "v${version}";
2019-01-19 16:08:23 +00:00
sha256 = "0x63m37vjyp57900x09gfvw02cwg85b33918x7fjj9x37wgmi5qf";
2017-09-11 14:13:08 +01:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libelf libpcap ];
cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ];
meta = with stdenv.lib; {
description = "A Cisco router emulator";
longDescription = ''
Dynamips is an emulator computer program that was written to emulate Cisco
routers.
'';
inherit (src.meta) homepage;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}