nixpkgs/pkgs/development/libraries/qoauth/default.nix

35 lines
833 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, qtbase, qmake, qca-qt5 }:
2012-08-08 08:59:03 +00:00
stdenv.mkDerivation rec {
pname = "qoauth";
version = "2.0.0";
2012-08-08 08:59:03 +00:00
src = fetchFromGitHub {
owner = "ayoy";
repo = "qoauth";
rev = "v${version}";
name = "qoauth-${version}.tar.gz";
sha256 = "1b2jdqs526ac635yb2whm049spcsk7almnnr6r5b4yqhq922anw3";
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
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
dontWrapQtApps = true;
meta = with 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
};
}