2017-08-23 01:11:48 +02:00
|
|
|
{ stdenv, fetchurl, qt5, qca2-qt5 }:
|
2012-08-08 10:59:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-08-23 01:11:48 +02:00
|
|
|
name = "qoauth-2.0.0";
|
2012-08-08 10:59:03 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-08-23 01:11:48 +02:00
|
|
|
url = https://github.com/ayoy/qoauth/archive/v2.0.0.tar.gz;
|
|
|
|
name = "qoauth-2.0.0.tar.gz";
|
|
|
|
sha256 = "a28005986410d333e03d077679cdf6c504ec5a33342867dc0f9fb0b74285e333";
|
2012-08-08 10:59:03 +02:00
|
|
|
};
|
|
|
|
|
2017-10-24 13:45:08 +02: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 10:59:03 +02:00
|
|
|
|
2017-08-23 01:11:48 +02:00
|
|
|
buildInputs = [ qt5.qtbase qca2-qt5 ];
|
|
|
|
nativeBuildInputs = [ qt5.qmake ];
|
2012-08-08 10:59:03 +02:00
|
|
|
|
2017-08-23 01:11:48 +02:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${qca2-qt5}/include/Qca-qt5/QtCrypto" ];
|
|
|
|
NIX_LDFLAGS = [ "-lqca-qt5" ];
|
2012-08-08 10:59:03 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Qt library for OAuth authentication";
|
2017-08-23 01:11:48 +02:00
|
|
|
inherit (qt5.qtbase.meta) platforms;
|
2017-03-27 19:11:17 +02:00
|
|
|
maintainers = [ ];
|
2012-08-08 10:59:03 +02:00
|
|
|
};
|
|
|
|
}
|