depot/third_party/nixpkgs/pkgs/development/tools/dockfmt/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

31 lines
601 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "dockfmt";
version = "0.3.3";
src = fetchFromGitHub {
owner = "jessfraz";
repo = "dockfmt";
rev = "v${version}";
sha256 = "0m56ydmf7zbcsa5yym7j5fgr75v677h9s40zyzwrqccyq01myp06";
};
vendorSha256 = null;
ldflags = [
"-w"
"-s"
"-X github.com/jessfraz/dockfmt/version.VERSION=${version}"
];
meta = with lib; {
description = "Dockerfile format";
homepage = "https://github.com/jessfraz/dockfmt";
license = [ licenses.mit ];
maintainers = [ maintainers.cpcloud ];
};
}