nixpkgs/pkgs/by-name/ai/air/package.nix

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

36 lines
676 B
Nix
Raw Normal View History

2024-06-04 18:06:20 +00:00
{
lib,
buildGoModule,
fetchFromGitHub,
}:
2021-02-24 02:24:15 +00:00
buildGoModule rec {
pname = "air";
2024-10-20 12:36:34 +00:00
version = "1.61.1";
2021-02-24 02:24:15 +00:00
src = fetchFromGitHub {
2024-06-04 18:05:05 +00:00
owner = "air-verse";
2021-02-24 02:24:15 +00:00
repo = "air";
rev = "v${version}";
2024-10-20 12:36:34 +00:00
hash = "sha256-IwPUbz3JYKz0TeK/kbEUzqFp0l8u/AFu9KEAyR8zlSQ=";
2021-02-24 02:24:15 +00:00
};
2024-10-20 12:36:34 +00:00
vendorHash = "sha256-BY2KnAwlrIyqSHWFLD0QU93EXAv4ta/ibvYWiHXvYMc=";
2021-02-24 02:24:15 +00:00
2024-06-04 18:06:20 +00:00
ldflags = [
"-s"
"-w"
"-X=main.airVersion=${version}"
];
2022-08-28 10:31:41 +00:00
2021-02-24 02:24:15 +00:00
subPackages = [ "." ];
meta = with lib; {
description = "Live reload for Go apps";
mainProgram = "air";
2024-06-04 18:05:05 +00:00
homepage = "https://github.com/air-verse/air";
2021-02-24 02:24:15 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ Gonzih ];
};
}