Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions pkgs/by-name/od/odamex/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pcre2,

jsoncpp,
portmidi,
zlib,
curl,
deutex,
libpng,
pkg-config,
makeWrapper,
SDL2,
SDL2_mixer,
wxGTK32,
miniupnpc,
enableUPnP ? true,
enablePortmini ? true,
makeDesktopItem,
copyDesktopItems,

}:

stdenv.mkDerivation rec {
pname = "odamex";
version = "11.0.0";

src = fetchFromGitHub {
owner = "odamex";
repo = "odamex";
rev = version;
hash = "sha256-vJyrz5qZKQRQW4F7gZ9Fs5tYnxfBfw33kCHZNnqKZT8=";
fetchSubmodules = true;
};

nativeBuildInputs = [
pkg-config
makeWrapper
cmake
copyDesktopItems
];

cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
];

buildInputs = [
deutex
SDL2
SDL2_mixer
wxGTK32
zlib
curl
pcre2
jsoncpp

libpng
] ++ lib.optionals enableUPnP [ miniupnpc ] ++ lib.optionals enablePortmini [ portmidi ];

desktopItems = [
(makeDesktopItem {
name = "odalaunch";
desktopName = "Odalaunch";
exec = "odalaunch";
icon = "odalaunch";
type = "Application";
comment = "Server Browser for Odamex";
categories = [
"Game"
"ActionGame"
];
})

(makeDesktopItem {
name = "odamex";
desktopName = "Odamex";
exec = "odamex -waddir /usr/share/doom"; # TODO replace in after phase
icon = "odamex";
type = "Application";
comment = "A Doom multiplayer game engine";
categories = [
"Game"
"ActionGame"
];
})

(makeDesktopItem {
desktopName = "Odamex server";
name = "odasrv";
exec = "odasrv";
icon = "odasrv";
type = "Application";
terminal = true;
comment = "Run an Odamex game server";
categories = [
"Network"

];
})

];

meta = {
description = "Odamex - Online Multiplayer Doom port with a strong focus on the original gameplay while providing a breadth of enhancements";
homepage = "https://github.com/odamex/odamex";
changelog = "https://github.com/odamex/odamex/blob/${version}/CHANGELOG";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ ];
mainProgram = "odamex";
platforms = lib.platforms.all;
};
}
54 changes: 0 additions & 54 deletions pkgs/games/doom-ports/odamex/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35473,8 +35473,6 @@ with pkgs;

gzdoom = callPackage ../games/doom-ports/gzdoom { };

odamex = callPackage ../games/doom-ports/odamex { };

prboom-plus = callPackage ../games/doom-ports/prboom-plus { };

rbdoom-3-bfg = callPackage ../games/doom-ports/rbdoom-3-bfg { };
Expand Down