accounts-qt: migrate to libsForQt5 derivations to fix cmake config

Co-authored-by: Thomas Tuegel <thomas.tuegel@runtimeverification.com>
This commit is contained in:
freezeboy 2020-09-17 23:34:46 +02:00 committed by Elias Probst
parent f6188ca545
commit 73779ab8d4
No known key found for this signature in database
GPG Key ID: 82C512826511BADB

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkgconfig, qtbase, qmake }:
{ mkDerivation, lib, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkgconfig, qmake }:
stdenv.mkDerivation rec {
mkDerivation rec {
pname = "accounts-qt";
version = "1.16";
@ -11,17 +11,13 @@ stdenv.mkDerivation rec {
owner = "accounts-sso";
};
buildInputs = [ glib libaccounts-glib qtbase ];
propagatedBuildInputs = [ glib libaccounts-glib ];
nativeBuildInputs = [ doxygen pkgconfig qmake ];
preConfigure = ''
qmakeFlags="$qmakeFlags LIBDIR=$out/lib CMAKE_CONFIG_PATH=$out/lib/cmake"
'';
# Hack to avoid TMPDIR in RPATHs.
preFixup = ''rm -rf "$(pwd)" '';
meta = with stdenv.lib; {
meta = with lib; {
description = "Qt library for accessing the online accounts database";
homepage = "https://gitlab.com/accounts-sso";
license = licenses.lgpl21;