openboard: fix build

This commit is contained in:
Nick Cao 2022-12-31 10:17:58 +08:00
parent 650f51f373
commit bffa10ffa3
No known key found for this signature in database

View file

@ -23,7 +23,7 @@ let
install -Dm755 OpenBoardImporter $out/bin/OpenBoardImporter
'';
};
in stdenv.mkDerivation rec {
in stdenv.mkDerivation {
pname = "openboard";
version = "unstable-2022-11-28";
@ -36,9 +36,9 @@ in stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace OpenBoard.pro \
--replace '/usr/include/quazip5' '${quazip}/include/QuaZip-Qt5-${quazip.version}/quazip' \
--replace '/usr/include/quazip5' '${lib.getDev quazip}/include/QuaZip-Qt5-${quazip.version}/quazip' \
--replace '-lquazip5' '-lquazip1-qt5' \
--replace '/usr/include/poppler' '${poppler.dev}/include/poppler'
--replace '/usr/include/poppler' '${lib.getDev poppler}/include/poppler'
'';
nativeBuildInputs = [ qmake copyDesktopItems wrapQtAppsHook ];