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

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

33 lines
709 B
Nix
Raw Normal View History

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