Merge pull request #329830 from CnTeng/kulala-fmt

kulala-fmt: init at 1.1.0
This commit is contained in:
Aleksana 2024-08-03 20:24:34 +08:00 committed by GitHub
commit 3862db8a01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 42 additions and 0 deletions

View File

@ -3843,6 +3843,12 @@
githubId = 718298;
name = "Michael Livshin";
};
CnTeng = {
name = "CnTeng";
email = "me@snakepi.xyz";
github = "CnTeng";
githubId = 56501688;
};
CobaltCause = {
name = "Charles Hall";
email = "charles@computer.surgery";

View File

@ -0,0 +1,36 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "kulala-fmt";
version = "1.1.0";
src = fetchFromGitHub {
owner = "mistweaverco";
repo = "kulala-fmt";
rev = "v${version}";
hash = "sha256-Fxxc8dJMiL7OVoovOt58vVaUloRjJX5hc8xSlzkwVc8=";
};
vendorHash = "sha256-uA29P6bcZNfxWsTfzsADBIqYgyfVX8dY8y70ZJKieas=";
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;
};
}