Commit 071d89c8 authored by heisfer's avatar heisfer
Browse files

jqfmt: 0-unstable-2025-07-28 -> 0.1.0

parent 65e49ca0
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -2,28 +2,25 @@
  buildGoModule,
  fetchFromGitHub,
  lib,
  nix-update-script,
}:
buildGoModule {
buildGoModule (finalAttrs: {
  pname = "jqfmt";
  version = "0-unstable-2025-07-28";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "noperator";
    repo = "jqfmt";
    rev = "74b59e03caff3ac5a8c061088d2c228a5c27b171";
    tag = "v${finalAttrs.version}";
    hash = "sha256-3PYIyjZm265atBAfuj5aHmWoAv4H29I7gN4/rjl1d0o=";
  };

  vendorHash = "sha256-avpZSgQKFZxLmYGj+2Gi+wSDHnAgF0/hyp4HtoQ0ZCo=";

  passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch=main" ]; };

  meta = {
    description = "Like gofmt, but for jq";
    homepage = "https://github.com/noperator/jqfmt";
    license = lib.licenses.mit; # Doesn't have Licence file, but Readme points to MIT
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ heisfer ];
    mainProgram = "jqfmt";
  };
}
})