nixpkgs-suyu/pkgs/shells/carapace/default.nix

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

32 lines
727 B
Nix
Raw Normal View History

2022-09-07 23:23:48 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
2022-01-27 21:38:24 +01:00
2022-09-07 23:23:48 +02:00
buildGoModule rec {
2022-01-27 21:38:24 +01:00
pname = "carapace";
2022-11-07 00:11:55 +01:00
version = "0.18.0";
2022-01-27 21:38:24 +01:00
src = fetchFromGitHub {
owner = "rsteube";
repo = "${pname}-bin";
rev = "v${version}";
2022-11-07 00:11:55 +01:00
sha256 = "sha256-dZ1TeBIP8560VHdDBR6JRbJaZmpvmKKUqzZ7ZYGsEXk=";
2022-01-27 21:38:24 +01:00
};
2022-11-07 00:11:55 +01:00
vendorSha256 = "sha256-6+hooVadDN/unf5oMyVzC3pjXwVLzsYBt7vzKuYUgXU=";
2022-01-27 21:38:24 +01: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;
};
}