nixpkgs/pkgs/by-name/ku/kulala-fmt/package.nix
2024-09-14 01:34:49 +00:00

36 lines
803 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "kulala-fmt";
version = "1.3.2";
src = fetchFromGitHub {
owner = "mistweaverco";
repo = "kulala-fmt";
rev = "v${version}";
hash = "sha256-VWd+lUPRgDVaM8nnwah/dXjQeHsLD3OM2D8coEJDCu4=";
};
vendorHash = "sha256-GazDEm/qv0nh8vYT+Tf0n4QDGHlcYtbMIj5rlZBvpKo=";
CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-X github.com/mistweaverco/kulala-fmt/cmd/kulalafmt.VERSION=${version}"
];
meta = {
description = "Opinionated .http and .rest files linter and formatter";
homepage = "https://github.com/mistweaverco/kulala-fmt";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ CnTeng ];
mainProgram = "kulala-fmt";
platforms = lib.platforms.all;
};
}