vkquake: move installation steps to installPhase

This commit is contained in:
PopeRigby 2024-08-06 12:23:38 -07:00
parent 7bbbeff617
commit 10b32454ad

View File

@ -50,23 +50,22 @@ stdenv.mkDerivation rec {
buildFlags = [ "DO_USERDIRS=1" ]; buildFlags = [ "DO_USERDIRS=1" ];
preInstall = ''
mkdir -p "$out/bin"
'';
env = lib.optionalAttrs stdenv.isDarwin { env = lib.optionalAttrs stdenv.isDarwin {
NIX_CFLAGS_COMPILE = "-Wno-error=unused-but-set-variable"; NIX_CFLAGS_COMPILE = "-Wno-error=unused-but-set-variable";
}; };
postFixup = '' installPhase = ''
mkdir -p "$out/bin"
cp vkquake "$out/bin" cp vkquake "$out/bin"
'';
postFixup = ''
patchelf $out/bin/vkquake \ patchelf $out/bin/vkquake \
--add-rpath ${lib.makeLibraryPath [ vulkan-loader ]} --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]}
''; '';
meta = with lib; { meta = with lib; {
description = "Vulkan Quake port based on QuakeSpasm"; description = "Vulkan Quake port based on QuakeSpasm";
mainProgram = "vkquake";
homepage = src.meta.homepage; homepage = src.meta.homepage;
longDescription = '' longDescription = ''
vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering. vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering.
@ -79,5 +78,6 @@ stdenv.mkDerivation rec {
platforms = with platforms; linux ++ darwin; platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ PopeRigby ylh ]; maintainers = with maintainers; [ PopeRigby ylh ];
mainProgram = "vkquake";
}; };
} }