From fe1825384743f35e7caddb1b596b6de499e22925 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Fri, 3 Sep 2021 06:28:10 -0400 Subject: [PATCH] dockfmt: init at 0.3.3 --- pkgs/development/tools/dockfmt/default.nix | 25 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/tools/dockfmt/default.nix diff --git a/pkgs/development/tools/dockfmt/default.nix b/pkgs/development/tools/dockfmt/default.nix new file mode 100644 index 000000000000..cbc18b1825b6 --- /dev/null +++ b/pkgs/development/tools/dockfmt/default.nix @@ -0,0 +1,25 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "dockfmt"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "jessfraz"; + repo = "dockfmt"; + rev = "v${version}"; + sha256 = "0m56ydmf7zbcsa5yym7j5fgr75v677h9s40zyzwrqccyq01myp06"; + }; + + vendorSha256 = null; + + meta = with lib; { + description = "Dockerfile format"; + homepage = "https://github.com/jessfraz/dockfmt"; + license = [ licenses.mit ]; + maintainers = [ maintainers.cpcloud ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2da2c5e1020b..c30d08535071 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24019,6 +24019,8 @@ with pkgs; docker-distribution = callPackage ../applications/virtualization/docker/distribution.nix { }; + dockfmt = callPackage ../development/tools/dockfmt { }; + afterburn = callPackage ../tools/admin/afterburn {}; docker-buildx = callPackage ../applications/virtualization/docker/buildx.nix { };