depot/third_party/nixpkgs/pkgs/development/tools/air/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

26 lines
629 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "air";
version = "1.42.0";
src = fetchFromGitHub {
owner = "cosmtrek";
repo = "air";
rev = "v${version}";
hash = "sha256-3lnCqetpQ0Gnms5AR7/+eKV8jxhfv0R2LJ4l+74edt4=";
};
vendorHash = "sha256-uVN99Sgjwtg0IaDuMfuDKWRZRYKVp9UDJwinr56eXOg=";
ldflags = [ "-s" "-w" "-X=main.airVersion=${version}" ];
subPackages = [ "." ];
meta = with lib; {
description = "Live reload for Go apps";
homepage = "https://github.com/cosmtrek/air";
license = licenses.gpl3Only;
maintainers = with maintainers; [ Gonzih ];
};
}