qoauth: fix Qt mkspecs install path

This commit is contained in:
Thomas Tuegel 2017-10-24 06:45:08 -05:00
parent afac783343
commit d817095208
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -9,7 +9,11 @@ stdenv.mkDerivation {
sha256 = "a28005986410d333e03d077679cdf6c504ec5a33342867dc0f9fb0b74285e333"; sha256 = "a28005986410d333e03d077679cdf6c504ec5a33342867dc0f9fb0b74285e333";
}; };
patchPhase = "sed -e 's/lib64/lib/g' -i src/src.pro"; postPatch = ''
sed -i src/src.pro \
-e 's/lib64/lib/g' \
-e '/features.path =/ s|$$\[QMAKE_MKSPECS\]|$$NIX_OUTPUT_DEV/mkspecs|'
'';
buildInputs = [ qt5.qtbase qca2-qt5 ]; buildInputs = [ qt5.qtbase qca2-qt5 ];
nativeBuildInputs = [ qt5.qmake ]; nativeBuildInputs = [ qt5.qmake ];