2021-02-24 02:24:15 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "air";
|
2023-11-01 14:12:24 +00:00
|
|
|
version = "1.49.0";
|
2021-02-24 02:24:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cosmtrek";
|
|
|
|
repo = "air";
|
|
|
|
rev = "v${version}";
|
2023-11-01 14:12:24 +00:00
|
|
|
hash = "sha256-6XQakQXGFMepX29KeiLlGM6EI8tiIfmKQuqZQXYNoto=";
|
2021-02-24 02:24:15 +00:00
|
|
|
};
|
|
|
|
|
2023-08-31 01:58:51 +00:00
|
|
|
vendorHash = "sha256-vyuXmQEjy5kPk9cKosHx0JZSZxstYtCNyfLIlRt2bnk=";
|
2021-02-24 02:24:15 +00:00
|
|
|
|
2022-08-28 10:31:41 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X=main.airVersion=${version}" ];
|
|
|
|
|
2021-02-24 02:24:15 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Live reload for Go apps";
|
|
|
|
homepage = "https://github.com/cosmtrek/air";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ Gonzih ];
|
|
|
|
};
|
|
|
|
}
|