diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-16 00:07:51 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-16 01:39:06 -0300 |
commit | 4a45cd997b43a7a12daf845f940ec2d824169619 (patch) | |
tree | c7d24f4171da45ea6b89966a9439531dc0198822 /pkgs/applications/virtualization | |
parent | 36928989d729c9f0c9753595e207f55327fa069a (diff) | |
download | nixlib-4a45cd997b43a7a12daf845f940ec2d824169619.tar nixlib-4a45cd997b43a7a12daf845f940ec2d824169619.tar.gz nixlib-4a45cd997b43a7a12daf845f940ec2d824169619.tar.bz2 nixlib-4a45cd997b43a7a12daf845f940ec2d824169619.tar.lz nixlib-4a45cd997b43a7a12daf845f940ec2d824169619.tar.xz nixlib-4a45cd997b43a7a12daf845f940ec2d824169619.tar.zst nixlib-4a45cd997b43a7a12daf845f940ec2d824169619.zip |
treewide: move some emulators to their correct place
bochs, dynamips, hercules, tiny8086 and tinyemu are not virtualizers.
Diffstat (limited to 'pkgs/applications/virtualization')
5 files changed, 0 insertions, 275 deletions
diff --git a/pkgs/applications/virtualization/bochs/default.nix b/pkgs/applications/virtualization/bochs/default.nix deleted file mode 100644 index 1f02219c8314..000000000000 --- a/pkgs/applications/virtualization/bochs/default.nix +++ /dev/null @@ -1,136 +0,0 @@ -{ lib -, stdenv -, fetchurl -, SDL2 -, curl -, docbook_xml_dtd_45 -, docbook_xsl -, gtk2 -, libGL -, libGLU -, libX11 -, libXpm -, libtool -, ncurses -, pkg-config -, readline -, wget -, wxGTK -}: - -stdenv.mkDerivation rec { - pname = "bochs"; - version = "2.7"; - - src = fetchurl { - url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.gz"; - hash = "sha256-oBCrG/3HKsWgjS4kEs1HHA/r1mrx2TSbwNeWh53lsXo="; - }; - - nativeBuildInputs = [ - docbook_xml_dtd_45 - docbook_xsl - libtool - pkg-config - ]; - buildInputs = [ - SDL2 - curl - gtk2 - libGL - libGLU - libX11 - libXpm - ncurses - readline - wget - wxGTK - ]; - - configureFlags = [ - "--with-x=yes" - "--with-x11=yes" - - "--with-rfb=no" - "--with-vncsrv=no" - "--with-nogui" - - # These will always be "yes" on NixOS - "--enable-ltdl-install=yes" - "--enable-readline=yes" - "--enable-all-optimizations=yes" - "--enable-logging=yes" - "--enable-xpm=yes" - - # ... whereas these, always "no"! - "--enable-cpp=no" - "--enable-instrumentation=no" - - "--enable-docbook=no" # Broken - it requires docbook2html - - # Dangerous options - they are marked as "incomplete/experimental" on Bochs documentation - "--enable-3dnow=no" - "--enable-monitor-mwait=no" - "--enable-raw-serial=no" - - # These are completely configurable, and they don't depend of external tools - "--enable-a20-pin" - "--enable-avx" - "--enable-busmouse" - "--enable-cdrom" - "--enable-clgd54xx" - "--enable-configurable-msrs" - "--enable-cpu-level=6" # from 3 to 6 - "--enable-debugger" #conflicts with gdb-stub option - "--enable-debugger-gui" - "--enable-e1000" - "--enable-es1370" - "--enable-evex" - "--enable-fpu" - "--enable-gdb-stub=no" # conflicts with debugger option - "--enable-handlers-chaining" - "--enable-idle-hack" - "--enable-iodebug" - "--enable-large-ramfile" - "--enable-largefile" - "--enable-ne2000" - "--enable-pci" - "--enable-plugins=yes" - "--enable-pnic" - "--enable-repeat-speedups" - "--enable-sb16" - "--enable-show-ips" - "--enable-smp" - "--enable-vmx=2" - "--enable-svm" - "--enable-trace-linking" - "--enable-usb" - "--enable-usb-ehci" - "--enable-usb-ohci" - "--enable-usb-xhci" - "--enable-voodoo" - "--enable-x86-64" - "--enable-x86-debugger" - ] - # Boolean flags - ++ lib.optionals (SDL2 != null) [ "--with-sdl2" ] - ++ lib.optionals (ncurses != null) [ "--with-term" ] - ++ lib.optionals (gtk2 != null && wxGTK != null) [ "--with-wx" ]; - - enableParallelBuilding = true; - - meta = with lib; { - homepage = "https://bochs.sourceforge.io/"; - description = "An open-source IA-32 (x86) PC emulator"; - longDescription = '' - Bochs is an open-source (LGPL), highly portable IA-32 PC emulator, written - in C++, that runs on most popular platforms. It includes emulation of the - Intel x86 CPU, common I/O devices, and a custom BIOS. - ''; - license = licenses.lgpl2Plus; - maintainers = with maintainers; [ AndersonTorres ]; - platforms = platforms.unix; - }; -} -# TODO: a better way to organize the options -# TODO: docbook (docbook-tools from RedHat mirrors should help) diff --git a/pkgs/applications/virtualization/dynamips/default.nix b/pkgs/applications/virtualization/dynamips/default.nix deleted file mode 100644 index 7f3320101530..000000000000 --- a/pkgs/applications/virtualization/dynamips/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, cmake, libelf, libpcap }: - -stdenv.mkDerivation rec { - pname = "dynamips"; - version = "0.2.21"; - - src = fetchFromGitHub { - owner = "GNS3"; - repo = pname; - rev = "v${version}"; - sha256 = "0pvdqs6kjz0x0wqb5f1k3r25dg82wssm7wz4psm0m6bxsvf5l0i5"; - }; - - nativeBuildInputs = [ cmake ]; - buildInputs = [ libelf libpcap ]; - - cmakeFlags = [ "-DDYNAMIPS_CODE=stable" ]; - - meta = with 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 ]; - }; -} diff --git a/pkgs/applications/virtualization/hercules/default.nix b/pkgs/applications/virtualization/hercules/default.nix deleted file mode 100644 index f33055baacbc..000000000000 --- a/pkgs/applications/virtualization/hercules/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ lib, stdenv, fetchurl }: - -stdenv.mkDerivation rec { - pname = "hercules"; - version = "3.13"; - - src = fetchurl { - url = "http://downloads.hercules-390.eu/${pname}-${version}.tar.gz"; - sha256 = "0zg6rwz8ib4alibf8lygi8qn69xx8n92kbi8b3jhi1ymb32mf349"; - }; - - meta = with lib; { - description = "IBM mainframe emulator"; - homepage = "http://www.hercules-390.eu"; - license = licenses.qpl; - maintainers = [ maintainers.anna328p ]; - }; -} diff --git a/pkgs/applications/virtualization/tiny8086/default.nix b/pkgs/applications/virtualization/tiny8086/default.nix deleted file mode 100644 index 60d69432cde6..000000000000 --- a/pkgs/applications/virtualization/tiny8086/default.nix +++ /dev/null @@ -1,68 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, localBios ? true -, nasm -, sdlSupport ? true -, SDL -}: - -stdenv.mkDerivation rec { - pname = "8086tiny"; - version = "1.25"; - - src = fetchFromGitHub { - owner = "adriancable"; - repo = pname; - rev = "c79ca2a34d96931d55ef724c815b289d0767ae3a"; - sha256 = "00aydg8f28sgy8l3rd2a7jvp56lx3b63hhak43p7g7vjdikv495w"; - }; - - buildInputs = lib.optional localBios nasm - ++ lib.optional sdlSupport SDL; - - makeFlags = [ "8086tiny" ]; - - postBuild = lib.optionalString localBios '' - ( - cd bios_source - nasm -f bin bios.asm -o bios - ) - ''; - - installPhase = '' - mkdir -p $out/bin $out/share/8086tiny $out/share/doc/8086tiny/images - - install -m 755 8086tiny $out/bin - install -m 644 fd.img $out/share/8086tiny/8086tiny-floppy.img - install -m 644 bios_source/bios.asm $out/share/8086tiny/8086tiny-bios-src.asm - install -m 644 docs/8086tiny.css $out/share/doc/8086tiny - install -m 644 docs/doc.html $out/share/doc/$name - - for i in docs/images/\*.gif; do - install -m 644 $i $out/share/doc/8086tiny/images - done - - ${if localBios then - "install -m 644 bios_source/bios $out/share/8086tiny/8086tiny-bios" - else - "install -m 644 bios $out/share/8086tiny/8086tiny-bios"} - ''; - - meta = with lib; { - description = "An open-source small 8086 emulator"; - longDescription = '' - 8086tiny is a tiny, open-source (MIT), portable (little-endian hosts) - Intel PC emulator, powerful enough to run DOS, Windows 3.0, Excel, MS - Flight Simulator, AutoCAD, Lotus 1-2-3, and similar applications. 8086tiny - emulates a "late 80's era" PC XT-type machine. - - 8086tiny is based on an IOCCC 2013 winning entry. In fact that is the - "unobfuscated" version :) - ''; - homepage = "https://github.com/adriancable/8086tiny"; - license = licenses.mit; - maintainers = [ maintainers.AndersonTorres ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/applications/virtualization/tinyemu/default.nix b/pkgs/applications/virtualization/tinyemu/default.nix deleted file mode 100644 index 17cee52a64e0..000000000000 --- a/pkgs/applications/virtualization/tinyemu/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ lib, stdenv, fetchurl, openssl, curl, SDL }: - -stdenv.mkDerivation rec { - pname = "tinyemu"; - version = "2018-09-23"; - src = fetchurl { - url = "https://bellard.org/tinyemu/${pname}-${version}.tar.gz"; - sha256 = "0d6payyqf4lpvmmzvlpq1i8wpbg4sf3h6llsw0xnqdgq3m9dan4v"; - }; - buildInputs = [ openssl curl SDL ]; - makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ]; - preInstall = '' - mkdir -p "$out/bin" - ''; - meta = { - homepage = "https://bellard.org/tinyemu/"; - description = "A system emulator for the RISC-V and x86 architectures"; - longDescription = "TinyEMU is a system emulator for the RISC-V and x86 architectures. Its purpose is to be small and simple while being complete."; - license = with lib.licenses; [ mit bsd2 ]; - platforms = lib.platforms.linux; - maintainers = with lib.maintainers; [ jhhuh ]; - }; -} |