nix: fix build
This commit is contained in:
parent
d29d020d6f
commit
9611b92b07
@ -18,7 +18,6 @@
|
|||||||
, self
|
, self
|
||||||
, submoduleNbt
|
, submoduleNbt
|
||||||
, submoduleQuazip
|
, submoduleQuazip
|
||||||
, msaClientID ? ""
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -43,15 +42,10 @@ mkDerivation rec {
|
|||||||
buildInputs = [ qtbase jdk8 zlib ];
|
buildInputs = [ qtbase jdk8 zlib ];
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
mkdir libraries/{libnbtplusplus,quazip}
|
mkdir source/libraries/{libnbtplusplus,quazip}
|
||||||
cp -a ${submoduleNbt}/* libraries/libnbtplusplus
|
cp -a ${submoduleNbt}/* source/libraries/libnbtplusplus
|
||||||
cp -a ${submoduleQuazip}/* libraries/quazip
|
cp -a ${submoduleQuazip}/* source/libraries/quazip
|
||||||
'';
|
chmod a+r+w source/libraries/{libnbtplusplus,quazip}/*
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# add client ID
|
|
||||||
substituteInPlace notsecrets/Secrets.cpp \
|
|
||||||
--replace 'QString MSAClientID = "";' 'QString MSAClientID = "${msaClientID}";'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
Loading…
Reference in New Issue
Block a user