Commit b86dacdb authored by Fabian Affolter's avatar Fabian Affolter
Browse files

jsonfmt: migrate to versionCheckHook

parent 50054711
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@
  lib,
  buildGoModule,
  fetchFromGitHub,
  testers,
  jsonfmt,
  versionCheckHook,
}:

buildGoModule rec {
@@ -19,17 +18,15 @@ buildGoModule rec {

  vendorHash = "sha256-QcljmDsz5LsXfHaXNVBU7IIVVgkm3Vfnirchx5ZOMSg=";

  nativeInstallCheckInputs = [ versionCheckHook ];

  ldflags = [
    "-s"
    "-w"
    "-X=main.version=${version}"
  ];

  passthru.tests = {
    version = testers.testVersion {
      package = jsonfmt;
    };
  };
  doInstallCheck = true;

  meta = {
    description = "Formatter for JSON files";