Skip to content

Commit

Permalink
fix: forgot to add
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Apr 2, 2023
1 parent 6869dae commit 88dac17
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pkgs/jsonfmt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ buildGoModule, fetchFromGitHub, lib, ... }:
buildGoModule rec {
pname = "jsonfmt";
version = "0.5.0";

src = fetchFromGitHub {
owner = "caarlos0";
repo = "jsonfmt";
rev = "v${version}";
sha256 = "rVv7Dv4vQmss4eiiy+KaO9tZ5U58WlRlsOz4QO0gdfM=";
};

vendorSha256 = "sha256-xtwN+TemiiyXOxZ2DNys4G6w4KA3BjLSWAmzox+boMY=";

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

meta = with lib; {
description = "Like gofmt, but for JSON files";
homepage = "https://github.com/caarlos0/jsonfmt";
license = licenses.mit;
};
}

0 comments on commit 88dac17

Please sign in to comment.