warzone2100: better fix for absolute bindir
(cherry picked from commit b5b5dbb62d959e743742e75ef342ff9fca392ada)
This commit is contained in:
parent
e6c441a5dc
commit
9e4f215465
@ -84,10 +84,15 @@ stdenv.mkDerivation rec {
|
|||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DWZ_DISTRIBUTOR=NixOS"
|
"-DWZ_DISTRIBUTOR=NixOS"
|
||||||
# The cmake builder automatically sets CMAKE_INSTALL_BINDIR to an absolute
|
# The cmake builder automatically sets CMAKE_INSTALL_BINDIR to an absolute
|
||||||
# path, but this results in an error.
|
# path, but this results in an error:
|
||||||
# By resetting it, we let the CMakeLists set it to an accepted value
|
#
|
||||||
# based on prefix.
|
# > An absolute CMAKE_INSTALL_BINDIR path cannot be used if the following
|
||||||
"-DCMAKE_INSTALL_BINDIR="
|
# > are not also absolute paths: WZ_DATADIR
|
||||||
|
#
|
||||||
|
# WZ_DATADIR is based on CMAKE_INSTALL_DATAROOTDIR, so we set that.
|
||||||
|
#
|
||||||
|
# Alternatively, we could have set CMAKE_INSTALL_BINDIR to "bin".
|
||||||
|
"-DCMAKE_INSTALL_DATAROOTDIR=${placeholder "out"}/share"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = lib.optionalString withVideos ''
|
postInstall = lib.optionalString withVideos ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user