mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
2ec6fe1a72
- depend on go 1.23 - update src to point to updated upstream Changes: https://github.com/carapace-sh/carapace-bin/releases/tag/v1.0.6
39 lines
879 B
Nix
39 lines
879 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, carapace }:
|
|
|
|
buildGoModule rec {
|
|
pname = "carapace";
|
|
version = "1.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "carapace-sh";
|
|
repo = "carapace-bin";
|
|
rev = "v${version}";
|
|
hash = "sha256-onkYihS4abrOfqOehlDy+ooL2d04w6DwOY3+B4+L3IQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-UFpQAlXFS1O/MqeGvUAWSQLhP03wf8JX8zz8cMyMmrc=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
subPackages = [ "./cmd/carapace" ];
|
|
|
|
tags = [ "release" ];
|
|
|
|
preBuild = ''
|
|
GOOS= GOARCH= go generate ./...
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion { package = carapace; };
|
|
|
|
meta = with lib; {
|
|
description = "Multi-shell multi-command argument completer";
|
|
homepage = "https://carapace.sh/";
|
|
maintainers = with maintainers; [ mimame ];
|
|
license = licenses.mit;
|
|
mainProgram = "carapace";
|
|
};
|
|
}
|