nixpkgs/pkgs/shells/carapace/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
725 B
Nix
Raw Normal View History

2022-09-07 21:23:48 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2022-01-27 20:38:24 +00:00
2022-09-07 21:23:48 +00:00
buildGoModule rec {
2022-01-27 20:38:24 +00:00
pname = "carapace";
2023-01-31 19:58:54 +00:00
version = "0.21.0";
2022-01-27 20:38:24 +00:00
src = fetchFromGitHub {
owner = "rsteube";
repo = "${pname}-bin";
rev = "v${version}";
2023-01-31 19:58:54 +00:00
sha256 = "sha256-vpYBgDX0CxTNphmdwrI56AtlPlf2DGf3BZ+jWwdanpw=";
2022-01-27 20:38:24 +00:00
};
2023-01-31 19:58:54 +00:00
vendorHash = "sha256-Qi2fkAdO0clpKowSdoxyanIB65oagqEnw5gCqVHPJb0=";
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;
};
}