about summary refs log tree commit diff
path: root/pkgs/development/tools/refmt
diff options
context:
space:
mode:
authorDanila Danko <br4ch1st0chr0n3@gmail.com>2023-06-14 22:52:12 +0300
committerDanila Danko <br4ch1st0chr0n3@gmail.com>2023-06-14 22:52:12 +0300
commit419b83474c2465e70c5e983e83cf08b01f658b42 (patch)
tree5c980a627e008cfef0cd5e9c4a72e5352df1fef2 /pkgs/development/tools/refmt
parent5d1d55743df51c49a50110cb8f5c66db8c1e463a (diff)
refmt: init at 1.16.0
About: Reformat HCL ⇄ JSON ⇄ YAML.
Release: https://github.com/rjeczalik/refmt/releases/tag/v1.6.1
Diffstat (limited to 'pkgs/development/tools/refmt')
-rw-r--r--pkgs/development/tools/refmt/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/tools/refmt/default.nix b/pkgs/development/tools/refmt/default.nix
new file mode 100644
index 0000000000000..523d14b2a9a33
--- /dev/null
+++ b/pkgs/development/tools/refmt/default.nix
@@ -0,0 +1,22 @@
+{ 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=";
+  };
+
+  vendorSha256 = "sha256-MiYUDEF9W0VAiOX6uE8doXtGAekIrA1cfA8A2a7xd2I=";
+
+  meta = with lib; {
+    description = "Reformat HCL <-> JSON <-> YAML";
+    homepage = "https://github.com/rjeczalik/refmt";
+    license = licenses.agpl3Only;
+    maintainers = with lib.maintainers; [ deemp ];
+  };
+}