nixpkgs/pkgs/by-name/ai/air/package.nix
2025-01-20 00:27:12 +00:00

36 lines
676 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "air";
version = "1.61.7";
src = fetchFromGitHub {
owner = "air-verse";
repo = "air";
rev = "v${version}";
hash = "sha256-+PgJR9+adeko86jUs6/mvkZLgVuIMyd6fv8xxOZB4tE=";
};
vendorHash = "sha256-tct0bWTvZhHslqPAe8uOwBx4z6gLAq57igcbV1tg9OU=";
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 ];
};
}