{ lib, buildGoModule, fetchFromGitHub, testers, carapace }: buildGoModule rec { pname = "carapace"; version = "0.24.5"; src = fetchFromGitHub { owner = "rsteube"; repo = "${pname}-bin"; rev = "v${version}"; sha256 = "sha256-R54zIWo8u7GIYvj3eyxwP7ffOg3Dw8ObwZQmSSlu3YY="; }; vendorHash = "sha256-3ukm9bIGYdYfHGQOy6KYah2GuLWGWW/JJ1uA7R3i1PE="; ldflags = [ "-s" "-w" "-X main.version=${version}" ]; subPackages = [ "./cmd/carapace" ]; tags = [ "release" ]; preBuild = '' go generate ./... ''; passthru.tests.version = testers.testVersion { package = carapace; }; meta = with lib; { description = "Multi-shell multi-command argument completer"; homepage = "https://rsteube.github.io/carapace-bin/"; maintainers = with maintainers; [ star-szr ]; license = licenses.mit; platforms = platforms.unix; }; }