13 rustPlatform.buildRustPackage rec {
17 src = fetchFromGitHub {
21 hash = "sha256-o8/ENAWzVqs7rokST6xnyu9Q/pKqq/UnKWOFRuIuGes=";
24 cargoHash = "sha256-LcnvCWGVdBxhDgQDoGHXRppGeEpfjOv/F0dZMN2bOF8=";
26 nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.hostPlatform.isLinux [ python3 ];
30 ++ lib.optionals stdenv.hostPlatform.isLinux [ libxcb ]
31 ++ lib.optionals stdenv.hostPlatform.isDarwin [
41 "--skip=kbs2::config::tests::test_find_config_dir"
42 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "--skip=test_ragelib_rewrap_keyfile" ];
46 mkdir -p $out/share/kbs2
47 cp -r contrib/ $out/share/kbs2
49 + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
50 installShellCompletion --cmd kbs2 \
51 --bash <($out/bin/kbs2 --completions bash) \
52 --fish <($out/bin/kbs2 --completions fish) \
53 --zsh <($out/bin/kbs2 --completions zsh)
57 description = "Secret manager backed by age";
59 homepage = "https://github.com/woodruffw/kbs2";
60 changelog = "https://github.com/woodruffw/kbs2/blob/v${version}/CHANGELOG.md";
61 license = licenses.mit;