Unverified Commit b8ad0c03 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

openboard: 1.7.0 -> 1.7.1; disable update checks by default (#342346)

parents 6f48e6de 7cad243b
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -25,13 +25,13 @@ let
  };
in stdenv.mkDerivation (finalAttrs: {
  pname = "openboard";
  version = "1.7.0";
  version = "1.7.1";

  src = fetchFromGitHub {
    owner = "OpenBoard-org";
    repo = "OpenBoard";
    rev = "v${finalAttrs.version}";
    hash = "sha256-OSAogtZoMisyRziv63ag9w8HQaaRdz0J28jQZR7cTMM=";
    hash = "sha256-gXxxlAEuzMCvFu5oSQayNW191XAC/YKvldItYEFxvNM=";
  };

  patches = [
@@ -52,9 +52,14 @@ in stdenv.mkDerivation (finalAttrs: {

  postPatch = ''
    substituteInPlace OpenBoard.pro \
      --replace '/usr/include/quazip5' '${lib.getDev quazip}/include/QuaZip-Qt5-${quazip.version}/quazip' \
      --replace '-lquazip5' '-lquazip1-qt5' \
      --replace '/usr/include/poppler' '${lib.getDev poppler}/include/poppler'
      --replace-fail '/usr/include/quazip5' '${lib.getDev quazip}/include/QuaZip-Qt5-${quazip.version}/quazip' \
      --replace-fail '-lquazip5' '-lquazip1-qt5' \
      --replace-fail '/usr/include/poppler' '${lib.getDev poppler}/include/poppler'

    substituteInPlace resources/etc/OpenBoard.config \
      --replace-fail 'EnableAutomaticSoftwareUpdates=true' 'EnableAutomaticSoftwareUpdates=false' \
      --replace-fail 'EnableSoftwareUpdates=true' 'EnableAutomaticSoftwareUpdates=false' \
      --replace-fail 'HideCheckForSoftwareUpdate=false' 'HideCheckForSoftwareUpdate=true'
  '';

  nativeBuildInputs = [ qmake copyDesktopItems wrapQtAppsHook ];