mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
libsForQt5.qtkeychain: add libsecret support (#60327)
libsForQt5.qtkeychain: add libsecret support
This commit is contained in:
commit
98922fecef
|
@ -1,6 +1,7 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, qt4 ? null
|
||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, qt4 ? null
|
||||
, withQt5 ? false, qtbase ? null, qttools ? null
|
||||
, darwin ? null
|
||||
, libsecret
|
||||
}:
|
||||
|
||||
assert withQt5 -> qtbase != null;
|
||||
|
@ -22,11 +23,14 @@ stdenv.mkDerivation rec {
|
|||
|
||||
cmakeFlags = [ "-DQT_TRANSLATIONS_DIR=share/qt/translations" ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [ cmake ]
|
||||
++ stdenv.lib.optional (!stdenv.isDarwin) [ pkgconfig ] # for finding libsecret
|
||||
;
|
||||
|
||||
buildInputs = if withQt5 then [ qtbase qttools ] else [ qt4 ]
|
||||
buildInputs = stdenv.lib.optional (!stdenv.isDarwin) [ libsecret ]
|
||||
++ (if withQt5 then [ qtbase qttools ] else [ qt4 ])
|
||||
++ stdenv.lib.optional stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||
CoreFoundation Security
|
||||
CoreFoundation Security
|
||||
])
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue