nixpkgs/pkgs/tools/text/hcledit/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

27 lines
588 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "hcledit";
version = "0.2.10";
src = fetchFromGitHub {
owner = "minamijoyo";
repo = pname;
rev = "v${version}";
hash = "sha256-rXmbRbM6U1JtV3t8C0LlLAdYpxd4UjxrbrPVHdqiCJ8=";
};
vendorHash = "sha256-9ND/vDPDn3rn213Jn1UPMmYAkMI86gYx9QLcV/oFGh4=";
meta = with lib; {
description = "A command line editor for HCL";
mainProgram = "hcledit";
homepage = "https://github.com/minamijoyo/hcledit";
license = licenses.mit;
maintainers = with maintainers; [ aleksana ];
};
}