2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "dockfmt";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "unstable-2020-09-18";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
# The latest released version doesn't support reading from stdin.
|
2021-09-18 10:52:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jessfraz";
|
|
|
|
repo = "dockfmt";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "1455059b8bb53ab4723ef41946c43160583a8333";
|
|
|
|
hash = "sha256-wEC9kENcE3u+Mb7uLbx/VBUup6PBnCY5cxTYvkJcavg=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2023-03-04 12:14:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|