dynamips: migrate to pkgs/by-name, format with nixfmt-rfc-style (#343777)
This commit is contained in:
commit
f9d0bb0d6c
@ -1,10 +1,11 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, libelf
|
||||
, libpcap
|
||||
, nix-update-script
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
libelf,
|
||||
libpcap,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -13,30 +14,40 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GNS3";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
repo = "dynamips";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-+h+WsZ/QrDd+dNrR6CJb2uMG+vbUvK8GTxFJZOxknL0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libelf libpcap ];
|
||||
|
||||
cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ];
|
||||
buildInputs = [
|
||||
libelf
|
||||
libpcap
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeFeature "DYNAMIPS_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.
|
||||
'';
|
||||
homepage = "https://github.com/GNS3/dynamips";
|
||||
changelog = "https://github.com/GNS3/dynamips/releases/tag/v${version}";
|
||||
license = licenses.gpl2Plus;
|
||||
mainProgram = "dynamips";
|
||||
maintainers = with maintainers; [ primeos ];
|
||||
maintainers = with maintainers; [
|
||||
primeos
|
||||
anthonyroussel
|
||||
];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
@ -2545,8 +2545,6 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk_11_0.frameworks) AudioUnit Carbon Cocoa;
|
||||
};
|
||||
|
||||
dynamips = callPackage ../applications/emulators/dynamips { };
|
||||
|
||||
fceux = libsForQt5.callPackage ../applications/emulators/fceux { };
|
||||
|
||||
firebird-emu = libsForQt5.callPackage ../applications/emulators/firebird-emu { };
|
||||
|
Loading…
Reference in New Issue
Block a user