Closed teto closed 1 year ago
What version of nixpkgs does the pkgs
instance refer to? lib.getExe is available in nixpkgs 22.05 and later only. https://github.com/NixOS/nixpkgs/commit/379b9c8be30ee14eb8703ec00c7ea5da5337c6b6
Right now we use test -f
, so only files can be pointed to. You could split out the treefmt.nix config file and then refer to it like this: https://github.com/numtide/treefmt-nix/blob/main/treefmt.nix
ha yeah that was it sry for the ticket, I tend to track unstable closely, this project was the exception. Thanks for the answers.
I can track flake.nix instead of .git too
Describe the bug
I triy adding a wrapped treefmt to my shell input but on
nix develop
I get:To Reproduce
add to flake
Expected behavior
wrapped treefmt in dev shell
System information
Additional context
NB: I have a side question: I use git worktrees a lot and thus
projectRootFile = ".git/config";
fails to detect my worktree (.git becomes a file that contains a path to the main repo). WouldprojectRootFile = ".git"
work on the main repo (since .git is a folder then ?).