Unverified Commit 7a689a20 authored by Jonas Chevalier's avatar Jonas Chevalier Committed by GitHub
Browse files

Merge pull request #311316 from zimbatm/treefmt2

treefmt2: init at 2.0.0-rc1
parents 92481d84 4c717f43
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
  pname = "treefmt";
  version = "2.0.0-rc1";

  src = fetchFromGitHub {
    owner = "numtide";
    repo = "treefmt";
    rev = "v${version}";
    hash = "sha256-iRjd7iYd3617XZrGD6Bi6d1SoE8dgATMbT4AMXklfgM=";
  };

  vendorHash = "sha256-xbXy5Csl2JD5/F5mtvh8J36VZqrUIfO3OBV/LE+KzWA=";

  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";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -40941,8 +40941,6 @@ with pkgs;
    inherit (darwin.apple_sdk.frameworks) CoreServices;
  };
  treefmt = callPackage ../development/tools/treefmt { };
  nufmt = callPackage ../development/tools/nufmt { };
  bottom = darwin.apple_sdk_11_0.callPackage ../tools/system/bottom { };