carapace-bridge: init at 1.2.3
This commit is contained in:
parent
9640f05169
commit
3a42b1eb90
44
pkgs/by-name/ca/carapace-bridge/package.nix
Normal file
44
pkgs/by-name/ca/carapace-bridge/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user