nixpkgs/pkgs/development/tools/dockfmt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
601 B
Nix
Raw Normal View History

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