nixpkgs/pkgs/shells/carapace/default.nix

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

39 lines
855 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, testers, carapace }:
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-08-06 00:35:57 +00:00
version = "0.26.0";
2022-01-27 20:38:24 +00:00
src = fetchFromGitHub {
owner = "rsteube";
repo = "${pname}-bin";
rev = "v${version}";
2023-08-06 00:35:57 +00:00
sha256 = "sha256-1e2hrAoFtnG1lU7evYnJXs65qmLNvO6fO9kPqjv66YE=";
2022-01-27 20:38:24 +00:00
};
2023-08-06 00:35:57 +00:00
vendorHash = "sha256-T0N6e96F/4HkHKYNiPFME/PUJGh+pbTmmb4SdZiDVgw=";
2022-01-27 20:38:24 +00:00
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
2022-01-27 20:38:24 +00:00
subPackages = [ "./cmd/carapace" ];
tags = [ "release" ];
preBuild = ''
go generate ./...
'';
passthru.tests.version = testers.testVersion { package = carapace; };
2022-01-27 20:38:24 +00: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 20:38:24 +00:00
license = licenses.mit;
};
}