Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
gitUpdater,
doxygen,
glib,
libaccounts-glib,
pkg-config,
qmake,
qtbase,
wrapQtAppsHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "accounts-qt";
version = "1.17";
# pinned to fork with Qt6 support
src = fetchFromGitLab {
owner = "accounts-sso";
repo = "libaccounts-qt";
rev = "refs/tags/VERSION_${finalAttrs.version}";
hash = "sha256-mPZgD4r7vlUP6wklvZVknGqTXZBckSOtNzK7p6e2qSA=";
};
propagatedBuildInputs = [
glib
libaccounts-glib
];
buildInputs = [ qtbase ];
nativeBuildInputs = [
doxygen
pkg-config
qmake
wrapQtAppsHook
];
# remove forbidden references to /build
preFixup = ''
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/*
'';
passthru.updateScript = gitUpdater {
rev-prefix = "VERSION_";
};
meta = with lib; {
description = "Qt library for accessing the online accounts database";
mainProgram = "accountstest";
homepage = "https://gitlab.com/accounts-sso/libaccounts-qt";
license = licenses.lgpl21;
platforms = platforms.linux;
};
})