1 { lib, stdenv, fetchFromGitHub, qtbase, qmake, qca-qt5 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 name = "qoauth-${version}.tar.gz";
12 sha256 = "1b2jdqs526ac635yb2whm049spcsk7almnnr6r5b4yqhq922anw3";
18 -e '/features.path =/ s|$$\[QMAKE_MKSPECS\]|$$NIX_OUTPUT_DEV/mkspecs|'
21 buildInputs = [ qtbase qca-qt5 ];
22 nativeBuildInputs = [ qmake ];
24 NIX_CFLAGS_COMPILE = "-I${qca-qt5}/include/Qca-qt5/QtCrypto";
25 NIX_LDFLAGS = "-lqca-qt5";
27 dontWrapQtApps = true;
30 description = "Qt library for OAuth authentication";
31 inherit (qtbase.meta) platforms;
32 license = licenses.lgpl21;