lol
at 17.09-beta 31 lines 877 B view raw
1{ stdenv, fetchFromGitHub, cmake, qt4 ? null 2, withQt5 ? false, qtbase ? null, qttools ? null 3}: 4 5assert withQt5 -> qtbase != null; 6assert withQt5 -> qttools != null; 7 8stdenv.mkDerivation rec { 9 name = "qtkeychain-${if withQt5 then "qt5" else "qt4"}-${version}"; 10 version = "0.7.0"; 11 12 src = fetchFromGitHub { 13 owner = "frankosterfeld"; 14 repo = "qtkeychain"; 15 rev = "v${version}"; 16 sha256 = "04v6ymkw7qd1pf9lwijgqrl89w2hhsnqgz7dm4cdrh8i8dffpn52"; 17 }; 18 19 cmakeFlags = [ "-DQT_TRANSLATIONS_DIR=share/qt/translations" ]; 20 21 nativeBuildInputs = [ cmake ]; 22 23 buildInputs = if withQt5 then [ qtbase qttools ] else [ qt4 ]; 24 25 meta = { 26 description = "Platform-independent Qt API for storing passwords securely"; 27 homepage = https://github.com/frankosterfeld/qtkeychain; 28 license = stdenv.lib.licenses.bsd3; 29 platforms = stdenv.lib.platforms.linux; 30 }; 31}