Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.3 kB · 105 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106{ stdenv, lib, fetchFromGitLab, unstableGitUpdater, accounts-qt, dbus-test-runner, pkg-config, qmake, qtbase, qtdeclarative, qttools, signond, xvfb-run,}:
stdenv.mkDerivation (finalAttrs: { pname = "accounts-qml-module"; version = "0.7-unstable-2023-10-28";
src = fetchFromGitLab { owner = "accounts-sso"; repo = "accounts-qml-module"; rev = "05e79ebbbf3784a87f72b7be571070125c10dfe3"; hash = "sha256-ZpnkZauowLPBnO3DDDtG/x07XoQGVNqEF8AQB5TZK84="; };
outputs = [ "out" "doc" ];
postPatch = '' substituteInPlace src/src.pro \ --replace '$$[QT_INSTALL_BINS]/qmlplugindump' 'qmlplugindump' \ --replace '$$[QT_INSTALL_QML]' '${placeholder "out"}/${qtbase.qtQmlPrefix}'
# Find qdoc substituteInPlace doc/doc.pri \ --replace-fail 'QDOC = $$[QT_INSTALL_BINS]/qdoc' 'QDOC = qdoc'
# Don't install test binary sed -i tests/tst_plugin.pro \ -e '/TARGET = tst_plugin/a INSTALLS -= target' '' + lib.optionalString (!finalAttrs.finalPackage.doCheck) '' sed -i accounts-qml-module.pro -e '/tests/d' '';
# QMake can't find Qt modules in buildInputs strictDeps = false;
nativeBuildInputs = [ pkg-config qmake qtdeclarative # qmlplugindump qttools # qdoc ];
buildInputs = [ accounts-qt qtbase qtdeclarative signond ];
nativeCheckInputs = [ dbus-test-runner xvfb-run ];
dontWrapQtApps = true;
postConfigure = '' make qmake_all '';
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
preCheck = '' # Needs xcb platform plugin export QT_PLUGIN_PATH=${lib.getBin qtbase}/${qtbase.qtPluginPrefix} '';
preInstall = '' # Same plugin needed here, re-export in case checks are disabled export QT_PLUGIN_PATH=${lib.getBin qtbase}/${qtbase.qtPluginPrefix} '';
postFixup = '' moveToOutput share/accounts-qml-module/doc $doc '';
passthru.updateScript = unstableGitUpdater { tagPrefix = "VERSION_"; };
meta = { description = "QML bindings for libaccounts-qt + libsignon-qt"; homepage = "https://gitlab.com/accounts-sso/accounts-qml-module"; license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ OPNA2608 ]; platforms = lib.platforms.linux; };})