nixpkgs/pkgs/development/tools/air/default.nix

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

28 lines
654 B
Nix
Raw Normal View History

2021-02-24 02:24:15 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "air";
2024-05-06 01:38:33 +00:00
version = "1.52.0";
2021-02-24 02:24:15 +00:00
src = fetchFromGitHub {
owner = "cosmtrek";
repo = "air";
rev = "v${version}";
2024-05-06 01:38:33 +00:00
hash = "sha256-7iqS8p53Pyk2WQVkbTVA7eJNnD2KvO41S+JJBTFOToQ=";
2021-02-24 02:24:15 +00:00
};
2024-03-23 08:46:40 +00:00
vendorHash = "sha256-dSu00NAq6hEOdJxXp+12UaUq32z53Wzla3/u+2nxqPw=";
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";
mainProgram = "air";
2021-02-24 02:24:15 +00:00
homepage = "https://github.com/cosmtrek/air";
license = licenses.gpl3Only;
maintainers = with maintainers; [ Gonzih ];
};
}