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

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

34 lines
738 B
Nix
Raw Normal View History

2021-09-03 10:28:10 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "dockfmt";
2023-03-02 10:01:09 +00:00
version = "unstable-2020-09-18";
2021-09-03 10:28:10 +00:00
2023-03-02 10:01:09 +00:00
# The latest released version doesn't support reading from stdin.
2021-09-03 10:28:10 +00:00
src = fetchFromGitHub {
owner = "jessfraz";
repo = "dockfmt";
2023-03-02 10:01:09 +00:00
rev = "1455059b8bb53ab4723ef41946c43160583a8333";
hash = "sha256-wEC9kENcE3u+Mb7uLbx/VBUup6PBnCY5cxTYvkJcavg=";
2021-09-03 10:28:10 +00:00
};
vendorHash = null;
2021-09-03 10:28:10 +00:00
2021-09-03 15:05:55 +00:00
ldflags = [
"-w"
"-s"
"-X github.com/jessfraz/dockfmt/version.VERSION=${version}"
];
2021-09-03 10:28:10 +00:00
meta = with lib; {
description = "Dockerfile format";
mainProgram = "dockfmt";
2021-09-03 10:28:10 +00:00
homepage = "https://github.com/jessfraz/dockfmt";
2023-03-02 10:01:09 +00:00
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
2021-09-03 10:28:10 +00:00
};
}