mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 07:04:25 +00:00
Merge pull request #237506 from necrophcodr/add-ironwail
ironwail: init at 0.7.0
This commit is contained in:
commit
a7022fafd1
91
pkgs/games/ironwail/default.nix
Normal file
91
pkgs/games/ironwail/default.nix
Normal file
@ -0,0 +1,91 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, SDL2
|
||||
, fetchurl
|
||||
, gzip
|
||||
, libvorbis
|
||||
, libmad
|
||||
, flac
|
||||
, libopus
|
||||
, opusfile
|
||||
, libogg
|
||||
, curl
|
||||
, libxmp
|
||||
, vulkan-headers
|
||||
, vulkan-loader
|
||||
, copyDesktopItems
|
||||
, makeDesktopItem
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ironwail";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/andrei-drexler/ironwail/archive/refs/tags/v${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-NBG0wwQWqyGWQYJmiLKfxGxpDJLw7Kwf4EnYd33dOpU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.pname}-${finalAttrs.version}/Quake";
|
||||
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems pkg-config vulkan-headers
|
||||
gzip libvorbis libmad flac curl libopus
|
||||
opusfile libogg libxmp vulkan-loader SDL2
|
||||
];
|
||||
|
||||
buildFlags = [
|
||||
"DO_USERDIRS=1"
|
||||
# Makefile defaults, set here to enforce consistency on Darwin build
|
||||
"USE_CODEC_WAVE=1"
|
||||
"USE_CODEC_MP3=1"
|
||||
"USE_CODEC_VORBIS=1"
|
||||
"USE_CODEC_FLAC=1"
|
||||
"USE_CODEC_OPUS=1"
|
||||
"USE_CODEC_MIKMOD=0"
|
||||
"USE_CODEC_UMX=0"
|
||||
"USE_CODEC_XMP=1"
|
||||
"MP3LIB=mad"
|
||||
"VORBISLIB=vorbis"
|
||||
"SDL_CONFIG=sdl2-config"
|
||||
"USE_SDL2=1"
|
||||
];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/bin"
|
||||
mkdir -p "$out/share/quake"
|
||||
substituteInPlace Makefile --replace "cp ironwail.pak /usr/local/games/quake" "cp ironwail.pak $out/share/quake/ironwail.pak"
|
||||
substituteInPlace Makefile --replace "/usr/local/games" "$out/bin"
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "ironwail";
|
||||
exec = "quake";
|
||||
desktopName = "Ironwail";
|
||||
categories = [ "Game" ];
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A fork of the QuakeSpasm engine for iD software's Quake";
|
||||
homepage = "https://github.com/andrei-drexler/ironwail";
|
||||
longDescription = ''
|
||||
Ironwail is a fork of QuakeSpasm with focus on high performance instead of
|
||||
compatibility.
|
||||
It features the ability to play the 2021 re-release content with no setup
|
||||
required, a mods menu for quick access to installation of mods, and ease of
|
||||
switching to installed mods.
|
||||
It also include various visual features as well as improved limits for playing
|
||||
larger levels with less performance impacts.
|
||||
'';
|
||||
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.necrophcodr ];
|
||||
mainProgram = "quake";
|
||||
};
|
||||
})
|
@ -36801,6 +36801,8 @@ with pkgs;
|
||||
# used as base package for iortcw forks
|
||||
iortcw_sp = callPackage ../games/iortcw/sp.nix { };
|
||||
|
||||
ironwail = callPackage ../games/ironwail { };
|
||||
|
||||
ivan = callPackage ../games/ivan { };
|
||||
|
||||
ja2-stracciatella = callPackage ../games/ja2-stracciatella {
|
||||
|
Loading…
Reference in New Issue
Block a user