diff --git a/pkgs/applications/emulators/bochs/default.nix b/pkgs/by-name/bo/bochs/package.nix similarity index 94% rename from pkgs/applications/emulators/bochs/default.nix rename to pkgs/by-name/bo/bochs/package.nix index edf092028fc08..803d6ae2852e3 100644 --- a/pkgs/applications/emulators/bochs/default.nix +++ b/pkgs/by-name/bo/bochs/package.nix @@ -3,6 +3,7 @@ , fetchurl , SDL2 , curl +, darwin , docbook_xml_dtd_45 , docbook_xsl , gtk3 @@ -10,13 +11,12 @@ , libGLU , libX11 , libXpm -, libobjc , libtool , ncurses , pkg-config , readline , wget -, wxGTK +, wxGTK32 , enableSDL2 ? true , enableTerm ? true , enableWx ? !stdenv.isDarwin @@ -49,14 +49,14 @@ stdenv.mkDerivation (finalAttrs: { ncurses ] ++ lib.optionals enableWx [ gtk3 - wxGTK + wxGTK32 ] ++ lib.optionals enableX11 [ libGL libGLU libX11 libXpm ] ++ lib.optionals stdenv.isDarwin [ - libobjc + darwin.libobjc ]; configureFlags = [ @@ -134,7 +134,7 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; - meta = with lib; { + meta = { homepage = "https://bochs.sourceforge.io/"; description = "An open-source IA-32 (x86) PC emulator"; longDescription = '' @@ -142,9 +142,9 @@ stdenv.mkDerivation (finalAttrs: { 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; + license = lib.licenses.lgpl2Plus; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.unix; }; }) # TODO: a better way to organize the options diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e8fc010f7e7b6..94845e8ce415b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2545,11 +2545,6 @@ with pkgs; basiliskii = callPackage ../applications/emulators/basiliskii { }; - bochs = callPackage ../applications/emulators/bochs { - inherit (darwin) libobjc; - wxGTK = wxGTK32; - }; - box64 = callPackage ../applications/emulators/box64 { hello-x86_64 = if stdenv.hostPlatform.isx86_64 then hello