Commit 6dd6b211 authored by Francesco Gazzetta's avatar Francesco Gazzetta
Browse files

drawpile: switch to qt6

Fixes #396876
parent 23a2be6f
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  mkDerivation,
  fetchFromGitHub,
  cargo,
  extra-cmake-modules,
@@ -9,21 +8,16 @@
  rustPlatform,

  # common deps
  karchive,
  qtwebsockets,
  libzip,
  qt6Packages,

  # client deps
  qtbase,
  qtkeychain,
  qtmultimedia,
  qtsvg,
  qttools,
  ffmpeg,
  libsecret,
  libwebp,

  # optional client deps
  giflib,
  kdnssd,
  libvpx,
  miniupnpc,

@@ -45,17 +39,17 @@ assert lib.assertMsg (
) "You must specify at least one of buildClient, buildServer, or buildExtraTools.";

let
  clientDeps = [
  clientDeps = with qt6Packages; [
    qtbase
    qtkeychain
    qtmultimedia
    qtsvg
    qttools
    ffmpeg
    libsecret
    libwebp
    # optional:
    giflib # gif animation export support
    kdnssd # local server discovery with Zeroconf
    libvpx # WebM video export
    miniupnpc # automatic port forwarding
  ];
@@ -67,7 +61,7 @@ let
  ] ++ lib.optional withSystemd systemd;

in
mkDerivation rec {
stdenv.mkDerivation rec {
  pname = "drawpile";
  version = "2.2.2";

@@ -88,12 +82,18 @@ mkDerivation rec {
    extra-cmake-modules
    rustc
    rustPlatform.cargoSetupHook
    (
      if buildClient || buildServerGui then
        qt6Packages.wrapQtAppsHook
      else
        qt6Packages.wrapQtAppsNoGuiHook
    )
  ];

  buildInputs =
    [
      karchive
      qtwebsockets
      libzip
      qt6Packages.qtwebsockets
    ]
    ++ lib.optionals buildClient clientDeps
    ++ lib.optionals buildServer serverDeps;
+1 −1
Original line number Diff line number Diff line
@@ -13847,7 +13847,7 @@ with pkgs;
  };
  drawio-headless = callPackage ../applications/graphics/drawio/headless.nix { };
  drawpile = libsForQt5.callPackage ../applications/graphics/drawpile { };
  drawpile = callPackage ../applications/graphics/drawpile { };
  drawpile-server-headless = libsForQt5.callPackage ../applications/graphics/drawpile {
    buildClient = false;
    buildServerGui = false;