2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mkDerivation
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, callPackage
|
|
|
|
, qtbase
|
|
|
|
, qtkeychain
|
|
|
|
, qttools
|
|
|
|
, sqlite
|
|
|
|
, libsecret
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "owncloud-client";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
libregraph = callPackage ./libre-graph-api-cpp-qt-client.nix { };
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "owncloud";
|
|
|
|
repo = "client";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-39tpvzlTy3KRxg8DzCQW2VnsaLqJ+dNQRur2TqRZytE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake extra-cmake-modules ];
|
2023-04-29 16:46:19 +00:00
|
|
|
buildInputs = [ qtbase qttools qtkeychain sqlite libsecret libregraph ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-UCMAKE_INSTALL_LIBDIR"
|
|
|
|
"-DNO_SHIBBOLETH=1"
|
2023-04-29 16:46:19 +00:00
|
|
|
# https://github.com/owncloud/client/issues/10537#issuecomment-1447965096
|
|
|
|
# NB! From 4.0 it may be turned off by default
|
|
|
|
"-DWITH_AUTO_UPDATER=OFF"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Synchronise your ownCloud with your computer using this desktop client";
|
|
|
|
homepage = "https://owncloud.org";
|
2023-04-29 16:46:19 +00:00
|
|
|
maintainers = with maintainers; [ qknight hellwolf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2Plus;
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/owncloud/client/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|