1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, qtbase, qttools
2 , CoreFoundation, Security
6 stdenv.mkDerivation rec {
8 version = "0.12.0"; # verify after nix-build with `grep -R "set(PACKAGE_VERSION " result/`
10 src = fetchFromGitHub {
11 owner = "frankosterfeld";
14 sha256 = "0gi1nx4bcc1vwfw41cif3xi2i59229vy0kc2r5959d8n6yv31kfr"; # v0.9.1
17 dontWrapQtApps = true;
19 patches = [ ./0002-Fix-install-name-Darwin.patch ];
21 cmakeFlags = [ "-DQT_TRANSLATIONS_DIR=share/qt/translations" ];
23 nativeBuildInputs = [ cmake ]
24 ++ lib.optionals (!stdenv.isDarwin) [ pkg-config ] # for finding libsecret
27 buildInputs = lib.optionals (!stdenv.isDarwin) [ libsecret ]
29 ++ lib.optionals stdenv.isDarwin [
30 CoreFoundation Security
35 description = "Platform-independent Qt API for storing passwords securely";
36 homepage = "https://github.com/frankosterfeld/qtkeychain";
37 license = lib.licenses.bsd3;
38 platforms = lib.platforms.unix;