From 7a2f64c49144bad5239c59e9c1ad6feb679c4a3a Mon Sep 17 00:00:00 2001 From: Peter Lehmann <36541313+peterablehmann@users.noreply.github.com> Date: Thu, 25 Jan 2024 19:27:20 +0000 Subject: [PATCH 1/2] maintainers: add xgwq --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c56575012f09..6e046a0ef22e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -19879,6 +19879,13 @@ githubId = 31734358; name = "Xavier Groleau"; }; + xgwq = { + name = "XGWQ"; + email = "nixos@xnee.de"; + matrix = "@xgwq:nerdberg.de"; + github = "peterablehmann"; + githubId = 36541313; + }; xiorcale = { email = "quentin.vaucher@pm.me"; github = "xiorcale"; From 2d78e1b237efe322141b3ad8df009d9c7f84b90d Mon Sep 17 00:00:00 2001 From: Peter Lehmann Date: Mon, 19 Feb 2024 12:04:56 +0100 Subject: [PATCH 2/2] keepassxc-go: init at 1.5.1 --- pkgs/by-name/ke/keepassxc-go/package.nix | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/ke/keepassxc-go/package.nix diff --git a/pkgs/by-name/ke/keepassxc-go/package.nix b/pkgs/by-name/ke/keepassxc-go/package.nix new file mode 100644 index 000000000000..86fb02a25ca4 --- /dev/null +++ b/pkgs/by-name/ke/keepassxc-go/package.nix @@ -0,0 +1,38 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: + +buildGoModule rec { + pname = "keepassxc-go"; + version = "1.5.1"; + + src = fetchFromGitHub { + owner = "MarkusFreitag"; + repo = "keepassxc-go"; + rev = "v${version}"; + hash = "sha256-seCeHNEj5GxAI7BVMPzh+YuoxivmTwvhVCqY5LKHpQk="; + }; + + nativeBuildInputs = [ installShellFiles ]; + + vendorHash = "sha256-jscyNyVr+RDN1EaxIOc3aYCAVT+1eO/c+dxEsIorDIs="; + + postInstall = '' + 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 = with lib; { + 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 = licenses.mit; + maintainers = with maintainers; [ xgwq ]; + mainProgram = "keepassxc-go"; + }; +}