Files
nixpkgs/pkgs/by-name/ir/ironwail/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

108 lines
2.4 KiB
Nix

{
lib,
stdenv,
SDL2,
fetchurl,
gzip,
libvorbis,
libmad,
flac,
libopus,
opusfile,
libogg,
libGL,
curl,
libxmp,
mpg123,
vulkan-headers,
vulkan-loader,
copyDesktopItems,
makeDesktopItem,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ironwail";
version = "0.8.0";
src = fetchurl {
url = "https://github.com/andrei-drexler/ironwail/archive/refs/tags/v${finalAttrs.version}.tar.gz";
hash = "sha256-IcODVQ0FgfTi74cvJnM6cPh/Der1bbltdTTo5hITUeI=";
};
sourceRoot = "${finalAttrs.pname}-${finalAttrs.version}/Quake";
nativeBuildInputs = [
copyDesktopItems
pkg-config
vulkan-headers
gzip
libGL
libvorbis
libmad
flac
curl
libopus
opusfile
libogg
libxmp
mpg123
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-fail "cp ironwail.pak /usr/local/games/quake" "cp ironwail.pak $out/share/quake/ironwail.pak"
substituteInPlace Makefile --replace-fail "/usr/local/games/quake" "$out/bin/ironwail"
'';
enableParallelBuilding = true;
desktopItems = [
(makeDesktopItem {
name = "ironwail";
exec = "ironwail";
desktopName = "Ironwail";
categories = [ "Game" ];
})
];
meta = {
description = "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 = "ironwail";
};
})