Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ description = "Simple, fast, opinionated logging for command line applications";
inputs = { nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"; flake-parts.url = "github:hercules-ci/flake-parts"; treefmt-nix = { url = "github:numtide/treefmt-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; };
outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { imports = [ inputs.treefmt-nix.flakeModule ];
systems = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { pkgs, ... }: { treefmt.programs = { deadnix.enable = true; gofmt.enable = true; nixfmt.enable = true; shellcheck.enable = true; shfmt.enable = true; statix.enable = true; yamlfmt = { enable = true; settings.formatter = { type = "basic"; eof_newline = true; indent = 2; pad_line_comments = 2; retain_line_breaks_single = true; scan_folded_as_literal = true; trim_trailing_whitespace = true; }; }; };
devShells.default = pkgs.mkShell { packages = with pkgs; [ go golangci-lint golangci-lint-langserver goperf gopls gotools mise pkgsite typos ];
shellHook = '' echo "👋🏻 Welcome to the log devShell!" ''; }; }; };}