2020-09-07 15:13:12 +00:00
|
|
|
{ stdenv, fetchurl, qtbase, qmake, qca-qt5 }:
|
2012-08-08 08:59:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-08-22 23:11:48 +00:00
|
|
|
name = "qoauth-2.0.0";
|
2012-08-08 08:59:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://github.com/ayoy/qoauth/archive/v2.0.0.tar.gz";
|
2017-08-22 23:11:48 +00:00
|
|
|
name = "qoauth-2.0.0.tar.gz";
|
|
|
|
sha256 = "a28005986410d333e03d077679cdf6c504ec5a33342867dc0f9fb0b74285e333";
|
2012-08-08 08:59:03 +00:00
|
|
|
};
|
|
|
|
|
2017-10-24 11:45:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i src/src.pro \
|
|
|
|
-e 's/lib64/lib/g' \
|
|
|
|
-e '/features.path =/ s|$$\[QMAKE_MKSPECS\]|$$NIX_OUTPUT_DEV/mkspecs|'
|
|
|
|
'';
|
2012-08-08 08:59:03 +00:00
|
|
|
|
2020-09-07 15:13:12 +00:00
|
|
|
buildInputs = [ qtbase qca-qt5 ];
|
|
|
|
nativeBuildInputs = [ qmake ];
|
2012-08-08 08:59:03 +00:00
|
|
|
|
2020-09-07 15:10:27 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${qca-qt5}/include/Qca-qt5/QtCrypto";
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_LDFLAGS = "-lqca-qt5";
|
2012-08-08 08:59:03 +00:00
|
|
|
|
2018-10-27 12:56:07 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-08-08 08:59:03 +00:00
|
|
|
description = "Qt library for OAuth authentication";
|
2020-09-07 15:13:12 +00:00
|
|
|
inherit (qtbase.meta) platforms;
|
2018-10-27 12:56:07 +00:00
|
|
|
license = licenses.lgpl21;
|
2012-08-08 08:59:03 +00:00
|
|
|
};
|
|
|
|
}
|