22 stdenv.mkDerivation rec {
26 src = fetchFromGitHub {
30 sha256 = "sha256-VqTfcwt6/VTotD2Y7x7WiVwISRGOLfmMWh6EO5DSMX4=";
52 ++ lib.optionals stdenv.hostPlatform.isDarwin [
57 buildFlags = [ "DO_USERDIRS=1" ];
59 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
60 NIX_CFLAGS_COMPILE = lib.concatStringsSep " " [
61 "-Wno-error=unused-but-set-variable"
62 "-Wno-error=implicit-const-int-float-conversion"
71 postFixup = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
72 patchelf $out/bin/vkquake \
73 --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]}
77 description = "Vulkan Quake port based on QuakeSpasm";
78 homepage = src.meta.homepage;
80 vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering.
81 It is based on the popular QuakeSpasm port and runs all mods compatible with it
82 like Arcane Dimensions or In The Shadows. vkQuake also serves as a Vulkan demo
83 application that shows basic usage of the API. For example it demonstrates render
84 passes & sub passes, pipeline barriers & synchronization, compute shaders, push &
85 specialization constants, CPU/GPU parallelism and memory pooling.
88 platforms = with platforms; linux ++ darwin;
89 maintainers = with maintainers; [
93 mainProgram = "vkquake";