mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
32 lines
727 B
Nix
32 lines
727 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "carapace";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rsteube";
|
|
repo = "${pname}-bin";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-gIEJvnLX223g6bhfFYrXMTmGGBibc0uewfGqEppOYek=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-o3BuNQMBZ/rEkXh+9C0DEKbo0Nto7rihM9yuvQFrGws=";
|
|
|
|
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;
|
|
};
|
|
}
|