Loading pkgs/by-name/tr/treefmt/package.nix +11 −0 Original line number Diff line number Diff line { lib, stdenv, buildGoModule, callPackages, fetchFromGitHub, installShellFiles, }: buildGoModule rec { pname = "treefmt"; Loading @@ -28,6 +30,15 @@ buildGoModule rec { "-X github.com/numtide/treefmt/v2/build.Version=v${version}" ]; nativeBuildInputs = [ installShellFiles ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd treefmt \ --bash <($out/bin/treefmt --completion bash) \ --fish <($out/bin/treefmt --completion fish) \ --zsh <($out/bin/treefmt --completion zsh) ''; passthru = { inherit (callPackages ./lib.nix { }) evalConfig Loading Loading
pkgs/by-name/tr/treefmt/package.nix +11 −0 Original line number Diff line number Diff line { lib, stdenv, buildGoModule, callPackages, fetchFromGitHub, installShellFiles, }: buildGoModule rec { pname = "treefmt"; Loading @@ -28,6 +30,15 @@ buildGoModule rec { "-X github.com/numtide/treefmt/v2/build.Version=v${version}" ]; nativeBuildInputs = [ installShellFiles ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd treefmt \ --bash <($out/bin/treefmt --completion bash) \ --fish <($out/bin/treefmt --completion fish) \ --zsh <($out/bin/treefmt --completion zsh) ''; passthru = { inherit (callPackages ./lib.nix { }) evalConfig Loading