Sridhar Ratnakumar
Sridhar Ratnakumar
@zimbatm Trying it out on haskell-template, ```diff diff --git a/flake.nix b/flake.nix index 9918a57..684242e 100644 --- a/flake.nix +++ b/flake.nix @@ -5,22 +5,23 @@ flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.inputs.nixpkgs.follows = "nixpkgs"; haskell-flake.url =...
What if we had a wrapper script to determine the project root by traversing until a parent directory with a `flake.nix` in it? It does assume that the project has...
> What if we had a wrapper script to determine the project root by traversing until a parent directory with a `flake.nix` in it? It does assume that the project...
@zimbatm Let me know what you think: https://github.com/numtide/treefmt/pull/177
> ok, I think this is ready now. Any last words/feedback? I've tested it to work after applying #178 Looks good to merge. I'd only suggest making `wrapper.projectRootFile = "flake.nix";`...
@zimbatm Will this (`withConfig`) be upstreamed to nixpkgs at some point?
I have seen `passthru` used by certain packages, eg: https://github.com/NixOS/nixpkgs/blob/45b92369d6fafcf9e462789e98fbc735f23b5f64/nixos/modules/services/networking/stubby.nix#L31
> Looking for feedback! Sure: https://github.com/numtide/treefmt-nix/issues/2
@zimbatm That's a great idea ... but, while it would get rid of `dependencies`, I'd still have to hand-write `apps.format` and `checks.format`.
IIUC [`nix fmt`](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-fmt.html) is about formatting *.nix files only, and not other languages? Unless we make `nix fmt` language-agnostic, but that may well involve upstreaming treefmt as the 'backend' to...