bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
33 lines
818 B
Nix
33 lines
818 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
buildGoModule rec {
|
|
pname = "treefmt";
|
|
version = "2.0.0-rc5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "numtide";
|
|
repo = "treefmt";
|
|
rev = "v${version}";
|
|
hash = "sha256-Ckvpb2at7lg7AB0XNtIxeo8lWXX+04MVHHKoUs876dg=";
|
|
};
|
|
|
|
vendorHash = "sha256-rjdGNfR2DpLZCzL/+3xiZ7gGDd4bPyBT5qMCO+NyWbg=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
CGO_ENABLED = 1;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X git.numtide.com/numtide/treefmt/build.Name=${pname}"
|
|
"-X git.numtide.com/numtide/treefmt/build.Version=v${version}"
|
|
];
|
|
|
|
meta = {
|
|
description = "one CLI to format the code tree";
|
|
homepage = "https://github.com/numtide/treefmt";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.brianmcgee lib.maintainers.zimbatm ];
|
|
mainProgram = "treefmt";
|
|
};
|
|
}
|