Merge pull request #311316 from zimbatm/treefmt2

treefmt2: init at 2.0.0-rc1

authored by zimbatm.tngl.sh and committed by GitHub 7a689a20 92481d84

+33 -2
+33
pkgs/by-name/tr/treefmt2/package.nix
··· 1 + { lib, buildGoModule, fetchFromGitHub }: 2 + buildGoModule rec { 3 + pname = "treefmt"; 4 + version = "2.0.0-rc1"; 5 + 6 + src = fetchFromGitHub { 7 + owner = "numtide"; 8 + repo = "treefmt"; 9 + rev = "v${version}"; 10 + hash = "sha256-iRjd7iYd3617XZrGD6Bi6d1SoE8dgATMbT4AMXklfgM="; 11 + }; 12 + 13 + vendorHash = "sha256-xbXy5Csl2JD5/F5mtvh8J36VZqrUIfO3OBV/LE+KzWA="; 14 + 15 + subPackages = [ "." ]; 16 + 17 + CGO_ENABLED = 1; 18 + 19 + ldflags = [ 20 + "-s" 21 + "-w" 22 + "-X git.numtide.com/numtide/treefmt/build.Name=${pname}" 23 + "-X git.numtide.com/numtide/treefmt/build.Version=v${version}" 24 + ]; 25 + 26 + meta = { 27 + description = "one CLI to format the code tree"; 28 + homepage = "https://github.com/numtide/treefmt"; 29 + license = lib.licenses.mit; 30 + maintainers = [ lib.maintainers.brianmcgee lib.maintainers.zimbatm ]; 31 + mainProgram = "treefmt"; 32 + }; 33 + }
pkgs/development/tools/treefmt/default.nix pkgs/by-name/tr/treefmt/package.nix
-2
pkgs/top-level/all-packages.nix
··· 40941 40941 inherit (darwin.apple_sdk.frameworks) CoreServices; 40942 40942 }; 40943 40943 40944 - treefmt = callPackage ../development/tools/treefmt { }; 40945 - 40946 40944 nufmt = callPackage ../development/tools/nufmt { }; 40947 40945 40948 40946 bottom = darwin.apple_sdk_11_0.callPackage ../tools/system/bottom { };