Files
nixpkgs/pkgs/by-name/ke/keepassxc-go/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
pname = "keepassxc-go";
version = "1.6.0";
src = fetchFromGitHub {
owner = "MarkusFreitag";
repo = "keepassxc-go";
rev = "v${version}";
hash = "sha256-Z4SbPxhs+umsUlby7idxofCjP+uLPvp/2oUCpnAS2/A=";
};
nativeBuildInputs = [ installShellFiles ];
vendorHash = "sha256-+cgf2FxpbLu+Yuhk6T0ZBnDH7We2DVu65xFaruk9I0E=";
checkFlags = [
# Test tries to monkey-patch the stdlib, fails with permission denied error.
"-skip=TestKeystore"
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
local INSTALL="$out/bin/keepassxc-go"
installShellCompletion --cmd keepassxc-go \
--bash <($out/bin/keepassxc-go completion bash) \
--fish <($out/bin/keepassxc-go completion fish) \
--zsh <($out/bin/keepassxc-go completion zsh)
'';
meta = {
description = "Library and basic CLI tool to interact with KeepassXC via unix socket";
homepage = "https://github.com/MarkusFreitag/keepassxc-go";
changelog = "https://github.com/MarkusFreitag/keepassxc-go/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ xgwq ];
mainProgram = "keepassxc-go";
};
}