1 { lib, stdenv, fetchFromGitHub, makeWrapper
2 , SDL2, gzip, libvorbis, libmad, vulkan-headers, vulkan-loader, moltenvk
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "sha256-+8DU1QT3Lgqf1AIReVnXQ2Lq6R6eBb8VjdkJfAn/Rtc=";
16 sourceRoot = "${src.name}/Quake";
29 ] ++ lib.optional stdenv.isDarwin moltenvk;
31 buildFlags = [ "DO_USERDIRS=1" ];
37 makeFlags = [ "prefix=$(out) bindir=$(out)/bin" ];
40 wrapProgram $out/bin/vkquake \
41 --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
44 enableParallelBuilding = true;
47 description = "Vulkan Quake port based on QuakeSpasm";
48 homepage = src.meta.homepage;
50 vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering.
51 It is based on the popular QuakeSpasm port and runs all mods compatible with it
52 like Arcane Dimensions or In The Shadows. vkQuake also serves as a Vulkan demo
53 application that shows basic usage of the API. For example it demonstrates render
54 passes & sub passes, pipeline barriers & synchronization, compute shaders, push &
55 specialization constants, CPU/GPU parallelism and memory pooling.
58 platforms = with platforms; linux ++ darwin;
59 maintainers = with maintainers; [ ylh ];