Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
qt6,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libre-graph-api-cpp-qt-client";
|
|
version = "1.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "owncloud";
|
|
repo = "libre-graph-api-cpp-qt-client";
|
|
tag = "v${version}";
|
|
hash = "sha256-wbdamPi2XSLWeprrYZtBUDH1A2gdp6/5geFZv+ZqSWk=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/client";
|
|
|
|
# cmake 4 compatibility
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail "cmake_minimum_required(VERSION 3.4)" "cmake_minimum_required(VERSION 3.10)"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ qt6.qtbase ];
|
|
dontWrapQtApps = true;
|
|
|
|
meta = {
|
|
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 lib.maintainers; [ hellwolf ];
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.asl20;
|
|
changelog = "https://github.com/owncloud/libre-graph-api-cpp-qt-client/releases/tag/v${version}";
|
|
};
|
|
}
|