nixpkgs/pkgs/applications/emulators/dynamips/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

43 lines
893 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, libelf
, libpcap
, nix-update-script
}:
stdenv.mkDerivation rec {
pname = "dynamips";
version = "0.2.23";
src = fetchFromGitHub {
owner = "GNS3";
repo = pname;
rev = "v${version}";
hash = "sha256-+h+WsZ/QrDd+dNrR6CJb2uMG+vbUvK8GTxFJZOxknL0=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libelf libpcap ];
cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
inherit (src.meta) homepage;
description = "Cisco router emulator";
longDescription = ''
Dynamips is an emulator computer program that was written to emulate Cisco
routers.
'';
license = licenses.gpl2Plus;
mainProgram = "dynamips";
maintainers = with maintainers; [ primeos ];
platforms = platforms.linux ++ platforms.darwin;
};
}