2022-09-07 22:23:48 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2022-01-27 20:38:24 +00:00
|
|
|
|
2022-09-07 22:23:48 +01:00
|
|
|
buildGoModule rec {
|
2022-01-27 20:38:24 +00:00
|
|
|
pname = "carapace";
|
2022-10-17 09:27:41 +01:00
|
|
|
version = "0.17.1";
|
2022-01-27 20:38:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rsteube";
|
|
|
|
repo = "${pname}-bin";
|
|
|
|
rev = "v${version}";
|
2022-10-17 09:27:41 +01:00
|
|
|
sha256 = "sha256-RDT6glOK5+qNiwrmNHUrOE7wgu8FnKltjt4QPlDpGF4=";
|
2022-01-27 20:38:24 +00:00
|
|
|
};
|
|
|
|
|
2022-10-17 09:27:41 +01:00
|
|
|
vendorSha256 = "sha256-isNW+6x2Q/mFl0LzsYP6IIHFrCzCzwtAVwSxZjPOJVg=";
|
2022-01-27 20:38:24 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|