mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
27 lines
631 B
Nix
27 lines
631 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "air";
|
|
version = "1.40.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cosmtrek";
|
|
repo = "air";
|
|
rev = "v${version}";
|
|
hash = "sha256-MipTBepFLcP3TJQtCLi/33D6HCJu4oX48tGnSGG5qho=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-+hZpCIDASPerI7Wetpx+ah2H5ODjoeyoqUi+uFwR/9A=";
|
|
|
|
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 ];
|
|
};
|
|
}
|