Merge pull request #233334 from figsoda/jsonfmt

jsonfmt: init at 0.5.0
This commit is contained in:
Ilan Joselevich 2023-05-22 21:55:39 +03:00 committed by GitHub
commit e32b1abf5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, jsonfmt
}:
buildGoModule rec {
pname = "jsonfmt";
version = "0.5.0";
src = fetchFromGitHub {
owner = "caarlos0";
repo = "jsonfmt";
rev = "v${version}";
hash = "sha256-rVv7Dv4vQmss4eiiy+KaO9tZ5U58WlRlsOz4QO0gdfM=";
};
vendorHash = "sha256-xtwN+TemiiyXOxZ2DNys4G6w4KA3BjLSWAmzox+boMY=";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
passthru.tests = {
version = testers.testVersion {
package = jsonfmt;
};
};
meta = with lib; {
description = "Formatter for JSON files";
homepage = "https://github.com/caarlos0/jsonfmt";
changelog = "https://github.com/caarlos0/jsonfmt/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}

View File

@ -8975,6 +8975,8 @@ with pkgs;
json-schema-for-humans = with python3Packages; toPythonApplication json-schema-for-humans;
jsonfmt = callPackage ../development/tools/misc/jsonfmt { };
jsonwatch = callPackage ../tools/misc/jsonwatch {
inherit (darwin.apple_sdk.frameworks) Security;
};