{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "carapace"; version = "0.17.1"; src = fetchFromGitHub { owner = "rsteube"; repo = "${pname}-bin"; rev = "v${version}"; sha256 = "sha256-RDT6glOK5+qNiwrmNHUrOE7wgu8FnKltjt4QPlDpGF4="; }; vendorSha256 = "sha256-isNW+6x2Q/mFl0LzsYP6IIHFrCzCzwtAVwSxZjPOJVg="; subPackages = [ "./cmd/carapace" ]; tags = [ "release" ]; preBuild = '' go generate ./... ''; meta = with lib; { description = "Multi-shell multi-command argument completer"; homepage = "https://rsteube.github.io/carapace-bin/"; maintainers = with maintainers; [ mredaelli ]; license = licenses.mit; platforms = platforms.unix; }; }