maintainers: add famfo; carapace-bridge: init at 1.2.3 (#380979)

This commit is contained in:
Sandro
2025-02-21 13:13:09 +01:00
committed by GitHub
2 changed files with 51 additions and 0 deletions

View File

@@ -7494,6 +7494,13 @@
githubId = 878822;
name = "Tristan Helmich";
};
famfo = {
name = "famfo";
email = "famfo+nixpkgs@famfo.xyz";
matrix = "@famfo:ccc.ac";
github = "famfo";
githubId = 44938471;
};
fangpen = {
email = "hello@fangpenlin.com";
github = "fangpenlin";

View File

@@ -0,0 +1,44 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule rec {
pname = "carapace-bridge";
version = "1.2.3";
src = fetchFromGitHub {
owner = "carapace-sh";
repo = "carapace-bridge";
tag = "v${version}";
hash = "sha256-RMItv9HAPsxnb0NGlDjqY8Of4cxf8xU1c8ZE8Ajz0ao=";
};
# buildGoModule try to run `go mod vendor` instead of `go work vendor` on the
# workspace if proxyVendor is off
proxyVendor = true;
vendorHash = "sha256-R2sk5yqhF+5pVWxCnEx+EKTvNPzg32/JguLMu6R3ETM=";
postPatch = ''
substituteInPlace cmd/carapace-bridge/main.go \
--replace-fail "var version = \"develop\"" "var version = \"$version\""
'';
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Multi-shell completion bridge for carapace";
homepage = "https://carapace.sh/";
changelog = "https://github.com/carapace-sh/carapace-bridge/releases/tag/v${version}";
maintainers = with lib.maintainers; [ famfo ];
license = lib.licenses.mit;
mainProgram = "carapace-bridge";
};
}