Merge pull request #259634 from hellwolf/owncloud-client-v5.0.0

owncloud-client: 4.2.0 -> 5.0.0
This commit is contained in:
K900 2023-10-28 12:08:22 +03:00 committed by GitHub
commit 995aa6ef16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 64 additions and 25 deletions

View file

@ -0,0 +1,33 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, qt6
}:
stdenv.mkDerivation rec {
pname = "KDSingleApplication";
version = "1.0.0";
src = fetchFromGitHub {
owner = "KDAB";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-5YprRbfiFI2UGMJqDf+3VDwXV904USEpMEpoNm0g7KY=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ qt6.qtbase ];
cmakeFlags = [ "-DKDSingleApplication_QT6=true" ];
dontWrapQtApps = true;
meta = with lib; {
description = "KDAB's helper class for single-instance policy applications";
homepage = "https://www.kdab.com/";
maintainers = with maintainers; [ hellwolf ];
platforms = platforms.unix;
license = licenses.mit;
changelog = "https://github.com/KDAB/KDSingleApplication/releases/tag/v${version}";
};
}

View file

@ -2,8 +2,7 @@
, stdenv
, fetchFromGitHub
, cmake
, qtbase
, wrapQtAppsHook
, qt6
}:
stdenv.mkDerivation rec {
@ -19,15 +18,14 @@ stdenv.mkDerivation rec {
sourceRoot = "${src.name}/client";
nativeBuildInputs = [ cmake wrapQtAppsHook ];
buildInputs = [ qtbase ];
cmakeFlags = [ ];
nativeBuildInputs = [ cmake ];
buildInputs = [ qt6.qtbase ];
dontWrapQtApps = true;
meta = with lib; {
description = "C++ Qt API for Libre Graph, a free API for cloud collaboration inspired by the MS Graph API";
homepage = "https://owncloud.org";
maintainers = with maintainers; [ qknight hellwolf ];
maintainers = with maintainers; [ hellwolf ];
platforms = platforms.unix;
license = licenses.asl20;
changelog = "https://github.com/owncloud/libre-graph-api-cpp-qt-client/releases/tag/v${version}";

View file

@ -1,38 +1,49 @@
{ lib
, stdenv
, fetchFromGitHub
, mkDerivation
, pkg-config
, cmake
, extra-cmake-modules
, callPackage
, qtbase
, qtkeychain
, wrapQtAppsHook
, qttools
, qt6
, qt6Packages
, sqlite
, libsecret
, libre-graph-api-cpp-qt-client
, kdsingleapplication
# darwin only:
, libinotify-kqueue
, sparkleshare
}:
stdenv.mkDerivation rec {
pname = "owncloud-client";
version = "4.2.0";
libregraph = callPackage ./libre-graph-api-cpp-qt-client.nix { };
version = "5.0.0";
src = fetchFromGitHub {
owner = "owncloud";
repo = "client";
rev = "refs/tags/v${version}";
hash = "sha256-dPNVp5DxCI4ye8eFjHoLGDlf8Ap682o1UB0k2VNr2rs=";
hash = "sha256-SSMNmWrCT1sGa38oY8P84QNedNkQPcIRWrV9B65B5X8=";
};
nativeBuildInputs = [ pkg-config cmake extra-cmake-modules wrapQtAppsHook qttools ];
buildInputs = [ qtbase qtkeychain sqlite libsecret libregraph ];
nativeBuildInputs = [
pkg-config
cmake
extra-cmake-modules
qt6.qttools
qt6.wrapQtAppsHook
];
cmakeFlags = [
"-UCMAKE_INSTALL_LIBDIR"
"-DNO_SHIBBOLETH=1"
buildInputs = [
sqlite
libsecret
qt6.qtbase
qt6.qtsvg # Needed for the systray icon
qt6Packages.qtkeychain
libre-graph-api-cpp-qt-client
kdsingleapplication
] ++ lib.optionals stdenv.isDarwin [
libinotify-kqueue sparkleshare
];
meta = with lib; {
@ -40,7 +51,6 @@ stdenv.mkDerivation rec {
homepage = "https://owncloud.org";
maintainers = with maintainers; [ qknight hellwolf ];
platforms = platforms.unix;
broken = stdenv.isDarwin;
license = licenses.gpl2Plus;
changelog = "https://github.com/owncloud/client/releases/tag/v${version}";
};

View file

@ -11780,8 +11780,6 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) VideoDecodeAcceleration;
};
owncloud-client = libsForQt5.callPackage ../applications/networking/owncloud-client { };
oxefmsynth = callPackage ../applications/audio/oxefmsynth { };
oxidized = callPackage ../tools/admin/oxidized { };