nix: fix build

This commit is contained in:
Mustafa Çalışkan 2022-01-08 22:31:13 +03:00
parent d29d020d6f
commit 9611b92b07

View File

@ -18,7 +18,6 @@
, self
, submoduleNbt
, submoduleQuazip
, msaClientID ? ""
}:
let
@ -43,15 +42,10 @@ mkDerivation rec {
buildInputs = [ qtbase jdk8 zlib ];
postUnpack = ''
mkdir libraries/{libnbtplusplus,quazip}
cp -a ${submoduleNbt}/* libraries/libnbtplusplus
cp -a ${submoduleQuazip}/* libraries/quazip
'';
postPatch = ''
# add client ID
substituteInPlace notsecrets/Secrets.cpp \
--replace 'QString MSAClientID = "";' 'QString MSAClientID = "${msaClientID}";'
mkdir source/libraries/{libnbtplusplus,quazip}
cp -a ${submoduleNbt}/* source/libraries/libnbtplusplus
cp -a ${submoduleQuazip}/* source/libraries/quazip
chmod a+r+w source/libraries/{libnbtplusplus,quazip}/*
'';
cmakeFlags = [