nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 62 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 cmake, 5 fetchFromGitHub, 6 fetchpatch, 7 libelf, 8 libpcap, 9 nix-update-script, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "dynamips"; 14 version = "0.2.23"; 15 16 src = fetchFromGitHub { 17 owner = "GNS3"; 18 repo = "dynamips"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-+h+WsZ/QrDd+dNrR6CJb2uMG+vbUvK8GTxFJZOxknL0="; 21 }; 22 23 patches = [ 24 # https://github.com/GNS3/dynamips/issues/305 25 (fetchpatch { 26 name = "cmake4-compat.patch"; 27 url = "https://github.com/GNS3/dynamips/commit/fdbbb7d3887eaa5b024bbcbcc14215f420a7e989.patch"; 28 hash = "sha256-CbiPGrIqn9KGnZEPUw7LiH8dkqzjfu4UxW1f7Fzbwro="; 29 }) 30 ]; 31 32 nativeBuildInputs = [ cmake ]; 33 34 buildInputs = [ 35 libelf 36 libpcap 37 ]; 38 39 cmakeFlags = [ 40 (lib.cmakeFeature "DYNAMIPS_CODE" "stable") 41 ]; 42 43 passthru = { 44 updateScript = nix-update-script { }; 45 }; 46 47 meta = { 48 description = "Cisco router emulator"; 49 longDescription = '' 50 Dynamips is an emulator computer program that was written to emulate Cisco 51 routers. 52 ''; 53 homepage = "https://github.com/GNS3/dynamips"; 54 changelog = "https://github.com/GNS3/dynamips/releases/tag/v${finalAttrs.version}"; 55 license = lib.licenses.gpl2Plus; 56 mainProgram = "dynamips"; 57 maintainers = with lib.maintainers; [ 58 anthonyroussel 59 ]; 60 platforms = lib.platforms.linux ++ lib.platforms.darwin; 61 }; 62})