nixpkgs/pkgs/shells/carapace/default.nix

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

40 lines
887 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, testers, carapace }:
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";
2023-04-19 07:44:21 +02:00
version = "0.24.4";
2022-01-27 21:38:24 +01:00
src = fetchFromGitHub {
owner = "rsteube";
repo = "${pname}-bin";
rev = "v${version}";
2023-04-19 07:44:21 +02:00
sha256 = "sha256-UEvmaUr/3Fq92HSfBPxSpfuo5mp5zMSYGZu2HLZvUq0=";
2022-01-27 21:38:24 +01:00
};
2023-04-19 07:44:21 +02:00
vendorHash = "sha256-4Q8yBDds2EIxt5Caxoq8hk4X6ADwVe04P3Jt3L+Qf0M=";
2022-01-27 21:38:24 +01:00
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
2022-01-27 21:38:24 +01:00
subPackages = [ "./cmd/carapace" ];
tags = [ "release" ];
preBuild = ''
go generate ./...
'';
passthru.tests.version = testers.testVersion { package = carapace; };
2022-01-27 21:38:24 +01:00
meta = with lib; {
description = "Multi-shell multi-command argument completer";
homepage = "https://rsteube.github.io/carapace-bin/";
maintainers = with maintainers; [ star-szr ];
2022-01-27 21:38:24 +01:00
license = licenses.mit;
platforms = platforms.unix;
};
}