mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
28 lines
654 B
Nix
28 lines
654 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "air";
|
|
version = "1.52.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cosmtrek";
|
|
repo = "air";
|
|
rev = "v${version}";
|
|
hash = "sha256-7iqS8p53Pyk2WQVkbTVA7eJNnD2KvO41S+JJBTFOToQ=";
|
|
};
|
|
|
|
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/cosmtrek/air";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ Gonzih ];
|
|
};
|
|
}
|