My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/libraries/qoauth/default.nix

35 lines
833 B

{ lib, stdenv, fetchFromGitHub, qtbase, qmake, qca-qt5 }:
12 years ago
stdenv.mkDerivation rec {
pname = "qoauth";
version = "2.0.0";
12 years ago
src = fetchFromGitHub {
owner = "ayoy";
repo = "qoauth";
rev = "v${version}";
name = "qoauth-${version}.tar.gz";
sha256 = "1b2jdqs526ac635yb2whm049spcsk7almnnr6r5b4yqhq922anw3";
12 years ago
};
postPatch = ''
sed -i src/src.pro \
-e 's/lib64/lib/g' \
-e '/features.path =/ s|$$\[QMAKE_MKSPECS\]|$$NIX_OUTPUT_DEV/mkspecs|'
'';
12 years ago
buildInputs = [ qtbase qca-qt5 ];
nativeBuildInputs = [ qmake ];
12 years ago
NIX_CFLAGS_COMPILE = "-I${qca-qt5}/include/Qca-qt5/QtCrypto";
NIX_LDFLAGS = "-lqca-qt5";
12 years ago
dontWrapQtApps = true;
meta = with lib; {
12 years ago
description = "Qt library for OAuth authentication";
inherit (qtbase.meta) platforms;
license = licenses.lgpl21;
12 years ago
};
}