2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
2023-05-24 13:37:59 +00:00
|
|
|
, stdenv
|
2023-04-29 16:46:19 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mkDerivation
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
|
|
|
, callPackage
|
|
|
|
, qtbase
|
|
|
|
, qtkeychain
|
2023-05-24 13:37:59 +00:00
|
|
|
, wrapQtAppsHook
|
2023-04-29 16:46:19 +00:00
|
|
|
, qttools
|
|
|
|
, sqlite
|
|
|
|
, libsecret
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "owncloud-client";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "4.1.0";
|
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}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-L0xeLYzlonzNClOcijyucGdwgQHTS7TlczIyJGbVQ5E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake extra-cmake-modules wrapQtAppsHook qttools ];
|
|
|
|
buildInputs = [ qtbase qtkeychain sqlite libsecret libregraph ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-UCMAKE_INSTALL_LIBDIR"
|
|
|
|
"-DNO_SHIBBOLETH=1"
|
|
|
|
];
|
|
|
|
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|