at 22.05-pre 34 lines 833 B view raw
1{ lib, stdenv, fetchFromGitHub, qtbase, qmake, qca-qt5 }: 2 3stdenv.mkDerivation rec { 4 pname = "qoauth"; 5 version = "2.0.0"; 6 7 src = fetchFromGitHub { 8 owner = "ayoy"; 9 repo = "qoauth"; 10 rev = "v${version}"; 11 name = "qoauth-${version}.tar.gz"; 12 sha256 = "1b2jdqs526ac635yb2whm049spcsk7almnnr6r5b4yqhq922anw3"; 13 }; 14 15 postPatch = '' 16 sed -i src/src.pro \ 17 -e 's/lib64/lib/g' \ 18 -e '/features.path =/ s|$$\[QMAKE_MKSPECS\]|$$NIX_OUTPUT_DEV/mkspecs|' 19 ''; 20 21 buildInputs = [ qtbase qca-qt5 ]; 22 nativeBuildInputs = [ qmake ]; 23 24 NIX_CFLAGS_COMPILE = "-I${qca-qt5}/include/Qca-qt5/QtCrypto"; 25 NIX_LDFLAGS = "-lqca-qt5"; 26 27 dontWrapQtApps = true; 28 29 meta = with lib; { 30 description = "Qt library for OAuth authentication"; 31 inherit (qtbase.meta) platforms; 32 license = licenses.lgpl21; 33 }; 34}