nixpkgs/pkgs/development/tools/refmt/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

24 lines
589 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "refmt";
version = "1.6.1";
src = fetchFromGitHub {
owner = "rjeczalik";
repo = "refmt";
rev = "v${version}";
sha256 = "sha256-HiAWSR2S+3OcIgwdQ0ltW37lcG+OHkDRDUF07rfNcJY=";
};
vendorHash = "sha256-MiYUDEF9W0VAiOX6uE8doXtGAekIrA1cfA8A2a7xd2I=";
meta = with lib; {
description = "Reformat HCL <-> JSON <-> YAML";
mainProgram = "refmt";
homepage = "https://github.com/rjeczalik/refmt";
license = licenses.agpl3Only;
maintainers = with lib.maintainers; [ deemp ];
};
}