2016-09-07 11:36:24 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, qt4 ? null
|
|
|
|
, withQt5 ? false, qtbase ? null, qttools ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert withQt5 -> qtbase != null;
|
|
|
|
assert withQt5 -> qttools != null;
|
2014-11-17 01:21:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-07 11:36:24 +02:00
|
|
|
name = "qtkeychain-${if withQt5 then "qt5" else "qt4"}-${version}";
|
2016-09-07 11:21:13 +02:00
|
|
|
version = "0.7.0";
|
2014-11-17 01:21:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frankosterfeld";
|
|
|
|
repo = "qtkeychain";
|
|
|
|
rev = "v${version}";
|
2016-09-07 11:21:13 +02:00
|
|
|
sha256 = "04v6ymkw7qd1pf9lwijgqrl89w2hhsnqgz7dm4cdrh8i8dffpn52";
|
2014-11-17 01:21:09 +01:00
|
|
|
};
|
|
|
|
|
2016-09-07 11:18:09 +02:00
|
|
|
cmakeFlags = [ "-DQT_TRANSLATIONS_DIR=share/qt/translations" ];
|
2014-11-17 01:21:09 +01:00
|
|
|
|
2016-09-07 11:36:24 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = if withQt5 then [ qtbase qttools ] else [ qt4 ];
|
2014-11-17 01:21:09 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Platform-independent Qt API for storing passwords securely";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/frankosterfeld/qtkeychain;
|
2014-11-18 20:33:18 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-11-17 01:21:09 +01:00
|
|
|
};
|
|
|
|
}
|