gopass: format with nixfmt-rfc-style

This commit is contained in:
Kenichi Kamiya
2024-12-04 09:32:04 +09:00
parent 5cfe3df29c
commit 47c8b8a8a4
+39 -24
View File
@@ -1,21 +1,25 @@
{ lib
, stdenv
, makeWrapper
, buildGoModule
, fetchFromGitHub
, installShellFiles
, git
, gnupg
, xclip
, wl-clipboard
, passAlias ? false
{
lib,
stdenv,
makeWrapper,
buildGoModule,
fetchFromGitHub,
installShellFiles,
git,
gnupg,
xclip,
wl-clipboard,
passAlias ? false,
}:
buildGoModule rec {
pname = "gopass";
version = "1.15.14";
nativeBuildInputs = [ installShellFiles makeWrapper ];
nativeBuildInputs = [
installShellFiles
makeWrapper
];
src = fetchFromGitHub {
owner = "gopasspw";
@@ -28,25 +32,33 @@ buildGoModule rec {
subPackages = [ "." ];
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" ];
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=${src.rev}"
];
wrapperPath = lib.makeBinPath (
[
git
gnupg
xclip
] ++ lib.optional stdenv.hostPlatform.isLinux wl-clipboard
]
++ lib.optional stdenv.hostPlatform.isLinux wl-clipboard
);
postInstall = ''
installManPage gopass.1
installShellCompletion --cmd gopass \
--zsh zsh.completion \
--bash bash.completion \
--fish fish.completion
'' + lib.optionalString passAlias ''
ln -s $out/bin/gopass $out/bin/pass
'';
postInstall =
''
installManPage gopass.1
installShellCompletion --cmd gopass \
--zsh zsh.completion \
--bash bash.completion \
--fish fish.completion
''
+ lib.optionalString passAlias ''
ln -s $out/bin/gopass $out/bin/pass
'';
postFixup = ''
wrapProgram $out/bin/gopass \
@@ -61,7 +73,10 @@ buildGoModule rec {
description = "Slightly more awesome Standard Unix Password Manager for Teams. Written in Go";
homepage = "https://www.gopass.pw/";
license = licenses.mit;
maintainers = with maintainers; [ rvolosatovs sikmir ];
maintainers = with maintainers; [
rvolosatovs
sikmir
];
changelog = "https://github.com/gopasspw/gopass/blob/v${version}/CHANGELOG.md";
longDescription = ''