2024-01-13 08:15:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkg-config, qmake, qtbase, wrapQtAppsHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "accounts-qt";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.16-unstable-2023-11-24";
|
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-02-29 20:09:43 +00:00
|
|
|
owner = "nicolasfella";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "libaccounts-qt";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "18557f7def9af8f4a9e0e93e9f575ae11e5066aa";
|
|
|
|
hash = "sha256-8FGZmg2ljSh1DYZfklMTrWN7Sdlk/Atw0qfpbb+GaBc=";
|
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
|
|
|
|
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";
|
|
|
|
homepage = "https://gitlab.com/accounts-sso";
|
|
|
|
license = licenses.lgpl21;
|
2024-01-13 08:15:51 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|