14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
19 owner = "frankosterfeld";
22 sha256 = "sha256-+1WX3ARH+jWeDiaJnX+ZlRMj+l3qvgBwcGKjB9QEJNI=";
25 dontWrapQtApps = true;
28 "-DBUILD_WITH_QT6=${if lib.versions.major qtbase.version == "6" then "ON" else "OFF"}"
29 "-DQT_TRANSLATIONS_DIR=share/qt/translations"
32 nativeBuildInputs = [ cmake ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ pkg-config ] # for finding libsecret
36 lib.optionals (!stdenv.hostPlatform.isDarwin) [ libsecret ]
41 ++ lib.optionals stdenv.hostPlatform.isDarwin [
46 doInstallCheck = true;
48 # we previously had a note in here saying to run this check manually, so we might as
49 # well do it automatically. It seems like a perfectly valid sanity check, but I
50 # have no idea *why* we might need it
51 installCheckPhase = ''
52 runHook preInstallCheck
54 grep --quiet -R 'set(PACKAGE_VERSION "${version}"' .
56 runHook postInstallCheck
60 description = "Platform-independent Qt API for storing passwords securely";
61 homepage = "https://github.com/frankosterfeld/qtkeychain";
62 license = lib.licenses.bsd3;
63 platforms = lib.platforms.unix;