jsonfmt: init at 0.5.0

https://github.com/caarlos0/jsonfmt
This commit is contained in:
figsoda
2023-05-21 22:31:23 -04:00
parent a12111248b
commit b0657b6185
2 changed files with 42 additions and 0 deletions
@@ -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 ];
};
}
+2
View File
@@ -8963,6 +8963,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;
};