2024-05-15 15:35:15 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, gitUpdater, doxygen, glib, libaccounts-glib, pkg-config, qmake, qtbase, wrapQtAppsHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "accounts-qt";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.17";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
# pinned to fork with Qt6 support
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitLab {
|
2024-05-15 15:35:15 +00:00
|
|
|
owner = "accounts-sso";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "libaccounts-qt";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "refs/tags/VERSION_${finalAttrs.version}";
|
|
|
|
hash = "sha256-mPZgD4r7vlUP6wklvZVknGqTXZBckSOtNzK7p6e2qSA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
propagatedBuildInputs = [ glib libaccounts-glib ];
|
2024-01-13 08:15:51 +00:00
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
nativeBuildInputs = [ doxygen pkg-config qmake wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# remove forbidden references to /build
|
2023-08-10 07:59:29 +00:00
|
|
|
preFixup = ''
|
|
|
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/*
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "VERSION_";
|
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Qt library for accessing the online accounts database";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "accountstest";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.com/accounts-sso/libaccounts-qt";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl21;
|
2024-01-13 08:15:51 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|