depot/pkgs/development/tools/air/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

35 lines
676 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "air";
version = "1.61.1";
src = fetchFromGitHub {
owner = "air-verse";
repo = "air";
rev = "v${version}";
hash = "sha256-IwPUbz3JYKz0TeK/kbEUzqFp0l8u/AFu9KEAyR8zlSQ=";
};
vendorHash = "sha256-BY2KnAwlrIyqSHWFLD0QU93EXAv4ta/ibvYWiHXvYMc=";
ldflags = [
"-s"
"-w"
"-X=main.airVersion=${version}"
];
subPackages = [ "." ];
meta = with lib; {
description = "Live reload for Go apps";
mainProgram = "air";
homepage = "https://github.com/air-verse/air";
license = licenses.gpl3Only;
maintainers = with maintainers; [ Gonzih ];
};
}