commandergenius: fix cmakeFlags and makeFlags for __structuredAttrs

This commit is contained in:
Yueh-Shun Li 2024-08-21 22:31:10 +08:00
parent 263be5c851
commit 2d66a0bf73

View File

@ -28,10 +28,14 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf libGL boost libvorbis zlib curl python3 ];
preConfigure = ''
export cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_PREFIX=$out -DSHAREDIR=$out/share"
export makeFlags="$makeFlags DESTDIR=$(out)"
'';
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
"-DSHAREDIR=${placeholder "out"}/share"
];
makeFlags = [
"DESTDIR=${placeholder "out"}"
];
nativeBuildInputs = [ cmake pkg-config ];