{ lib, buildGoModule, fetchFromGitHub, testers, carapace }: buildGoModule rec { pname = "carapace"; version = "1.0.6"; src = fetchFromGitHub { owner = "carapace-sh"; repo = "carapace-bin"; rev = "v${version}"; hash = "sha256-onkYihS4abrOfqOehlDy+ooL2d04w6DwOY3+B4+L3IQ="; }; vendorHash = "sha256-UFpQAlXFS1O/MqeGvUAWSQLhP03wf8JX8zz8cMyMmrc="; ldflags = [ "-s" "-w" "-X main.version=${version}" ]; subPackages = [ "./cmd/carapace" ]; tags = [ "release" ]; preBuild = '' GOOS= GOARCH= go generate ./... ''; passthru.tests.version = testers.testVersion { package = carapace; }; meta = with lib; { description = "Multi-shell multi-command argument completer"; homepage = "https://carapace.sh/"; maintainers = with maintainers; [ mimame ]; license = licenses.mit; mainProgram = "carapace"; }; }