1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "air";
5 version = "1.52.0";
6
7 src = fetchFromGitHub {
8 owner = "cosmtrek";
9 repo = "air";
10 rev = "v${version}";
11 hash = "sha256-7iqS8p53Pyk2WQVkbTVA7eJNnD2KvO41S+JJBTFOToQ=";
12 };
13
14 vendorHash = "sha256-dSu00NAq6hEOdJxXp+12UaUq32z53Wzla3/u+2nxqPw=";
15
16 ldflags = [ "-s" "-w" "-X=main.airVersion=${version}" ];
17
18 subPackages = [ "." ];
19
20 meta = with lib; {
21 description = "Live reload for Go apps";
22 mainProgram = "air";
23 homepage = "https://github.com/cosmtrek/air";
24 license = licenses.gpl3Only;
25 maintainers = with maintainers; [ Gonzih ];
26 };
27}