at 23.11-beta 42 lines 895 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, libelf 6, libpcap 7, nix-update-script 8}: 9 10stdenv.mkDerivation rec { 11 pname = "dynamips"; 12 version = "0.2.23"; 13 14 src = fetchFromGitHub { 15 owner = "GNS3"; 16 repo = pname; 17 rev = "v${version}"; 18 hash = "sha256-+h+WsZ/QrDd+dNrR6CJb2uMG+vbUvK8GTxFJZOxknL0="; 19 }; 20 21 nativeBuildInputs = [ cmake ]; 22 buildInputs = [ libelf libpcap ]; 23 24 cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ]; 25 26 passthru = { 27 updateScript = nix-update-script { }; 28 }; 29 30 meta = with lib; { 31 inherit (src.meta) homepage; 32 description = "A Cisco router emulator"; 33 longDescription = '' 34 Dynamips is an emulator computer program that was written to emulate Cisco 35 routers. 36 ''; 37 license = licenses.gpl2Plus; 38 mainProgram = "dynamips"; 39 maintainers = with maintainers; [ primeos ]; 40 platforms = platforms.linux ++ platforms.darwin; 41 }; 42}