depot/third_party/nixpkgs/pkgs/development/tools/air/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

35 lines
676 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "air";
version = "1.52.3";
src = fetchFromGitHub {
owner = "air-verse";
repo = "air";
rev = "v${version}";
hash = "sha256-TLTg9fYkIlTFDwkjRIQ7mAmKd+jA5Q9EPQ62fJ6zS9o=";
};
vendorHash = "sha256-dSu00NAq6hEOdJxXp+12UaUq32z53Wzla3/u+2nxqPw=";
ldflags = [
"-s"
"-w"
"-X=main.airVersion=${version}"
];
subPackages = [ "." ];
meta = with lib; {
description = "Live reload for Go apps";
mainProgram = "air";
homepage = "https://github.com/air-verse/air";
license = licenses.gpl3Only;
maintainers = with maintainers; [ Gonzih ];
};
}