2021-07-21 07:28:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qtbase, qmake, qca-qt5 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qoauth";
|
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ayoy";
|
|
|
|
repo = "qoauth";
|
|
|
|
rev = "v${version}";
|
|
|
|
name = "qoauth-${version}.tar.gz";
|
|
|
|
sha256 = "1b2jdqs526ac635yb2whm049spcsk7almnnr6r5b4yqhq922anw3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i src/src.pro \
|
|
|
|
-e 's/lib64/lib/g' \
|
|
|
|
-e '/features.path =/ s|$$\[QMAKE_MKSPECS\]|$$NIX_OUTPUT_DEV/mkspecs|'
|
|
|
|
'';
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [ qtbase qca-qt5 ];
|
|
|
|
nativeBuildInputs = [ qmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${qca-qt5}/include/Qca-qt5/QtCrypto";
|
2020-04-24 23:36:52 +00:00
|
|
|
NIX_LDFLAGS = "-lqca-qt5";
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Qt library for OAuth authentication";
|
2020-09-25 04:45:31 +00:00
|
|
|
inherit (qtbase.meta) platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
}
|