nixpkgs-suyu/pkgs/development/tools/air/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
631 B
Nix
Raw Normal View History

2021-02-24 03:24:15 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "air";
2022-07-29 05:56:37 +02:00
version = "1.40.4";
2021-02-24 03:24:15 +01:00
src = fetchFromGitHub {
owner = "cosmtrek";
repo = "air";
rev = "v${version}";
2022-07-29 05:56:37 +02:00
hash = "sha256-MipTBepFLcP3TJQtCLi/33D6HCJu4oX48tGnSGG5qho=";
2021-02-24 03:24:15 +01:00
};
2022-07-29 05:56:37 +02:00
vendorSha256 = "sha256-+hZpCIDASPerI7Wetpx+ah2H5ODjoeyoqUi+uFwR/9A=";
2021-02-24 03:24:15 +01:00
2022-08-28 12:31:41 +02:00
ldflags = [ "-s" "-w" "-X=main.airVersion=${version}" ];
2021-02-24 03:24:15 +01:00
subPackages = [ "." ];
meta = with lib; {
description = "Live reload for Go apps";
homepage = "https://github.com/cosmtrek/air";
license = licenses.gpl3Only;
maintainers = with maintainers; [ Gonzih ];
};
}