jsonfmt: 0.5.1 -> 0.5.2 (#473915)
This commit is contained in:
@@ -2,22 +2,23 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
testers,
|
||||
jsonfmt,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "jsonfmt";
|
||||
version = "0.5.1";
|
||||
version = "0.5.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "caarlos0";
|
||||
repo = "jsonfmt";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-4SNpW/+4S4sEwjM7b9ClqKqwqFFVbCVv5VnftGIHtjo=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-CMBqqTGpqoErFPKn4lxMB9XrdlhZcY6qbRZZVUVMQj0=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-6pCgBCwHgTRnLDNfveBEKbs7kiXSSacD0B82A2Sbl1U=";
|
||||
vendorHash = "sha256-QcljmDsz5LsXfHaXNVBU7IIVVgkm3Vfnirchx5ZOMSg=";
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
@@ -25,16 +26,12 @@ buildGoModule rec {
|
||||
"-X=main.version=${version}"
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = jsonfmt;
|
||||
};
|
||||
};
|
||||
doInstallCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Formatter for JSON files";
|
||||
homepage = "https://github.com/caarlos0/jsonfmt";
|
||||
changelog = "https://github.com/caarlos0/jsonfmt/releases/tag/${src.rev}";
|
||||
changelog = "https://github.com/caarlos0/jsonfmt/releases/tag/${src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
mainProgram = "jsonfmt";
|
||||
|
||||
Reference in New Issue
Block a user