Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

41 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
qt6,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libre-graph-api-cpp-qt-client";
version = "1.0.4";
src = fetchFromGitHub {
owner = "owncloud";
repo = "libre-graph-api-cpp-qt-client";
tag = "v${finalAttrs.version}";
hash = "sha256-wbdamPi2XSLWeprrYZtBUDH1A2gdp6/5geFZv+ZqSWk=";
};
sourceRoot = "${finalAttrs.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${finalAttrs.version}";
};
})