nixpkgs/pkgs/development/libraries/qtkeychain/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2021-08-05 07:26:28 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, qtbase, qttools
, CoreFoundation, Security
, libsecret
}:
stdenv.mkDerivation rec {
2021-08-05 07:26:28 +00:00
pname = "qtkeychain";
version = "0.12.0"; # verify after nix-build with `grep -R "set(PACKAGE_VERSION " result/`
src = fetchFromGitHub {
owner = "frankosterfeld";
repo = "qtkeychain";
rev = "v${version}";
2021-08-05 07:26:28 +00:00
sha256 = "0gi1nx4bcc1vwfw41cif3xi2i59229vy0kc2r5959d8n6yv31kfr"; # v0.9.1
};
dontWrapQtApps = true;
2021-08-05 07:26:28 +00:00
patches = [ ./0002-Fix-install-name-Darwin.patch ];
2018-09-05 07:28:50 +00:00
cmakeFlags = [ "-DQT_TRANSLATIONS_DIR=share/qt/translations" ];
nativeBuildInputs = [ cmake ]
++ lib.optionals (!stdenv.isDarwin) [ pkg-config ] # for finding libsecret
;
buildInputs = lib.optionals (!stdenv.isDarwin) [ libsecret ]
2021-08-05 07:26:28 +00:00
++ [ qtbase qttools ]
++ lib.optionals stdenv.isDarwin [
CoreFoundation Security
2021-08-05 07:26:28 +00:00
]
;
meta = {
description = "Platform-independent Qt API for storing passwords securely";
homepage = "https://github.com/frankosterfeld/qtkeychain";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
};
}