2024-10-04 16:56:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildGoModule,
|
|
|
|
testers,
|
|
|
|
bazel-watcher,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
buildGoModule rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "bazel-watcher";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.25.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bazelbuild";
|
|
|
|
repo = "bazel-watcher";
|
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-5cRj04e5VVG4NSe4LOLkZIrerT4laLEDeXCqTiJj6MM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
vendorHash = "sha256-0I/bvuyosN55oNSMuom4C8rVjxneUaqV19l9OMiwWhU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
CGO_ENABLED = "0";
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
subPackages = [ "cmd/ibazel" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
passthru = {
|
|
|
|
tests.version = testers.testVersion { package = bazel-watcher; };
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/bazelbuild/bazel-watcher";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Tools for building Bazel targets when source files change";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
2022-08-12 12:06:08 +00:00
|
|
|
mainProgram = "ibazel";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|