-
Notifications
You must be signed in to change notification settings - Fork 173
Expose as a flake #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It works fine if you import the modules directly. Not saying you should do that, but that means it's not far off. |
I don't think the modules can be imported directly. It's too tightly coupled too niv and inject overlays, which cannot be easily overwritten. |
It's not that bad, but that's quite an experimental project anyway. Let's focus on the problem here, which is probably the initialization of |
Exposes the project as a nix flake and replaces niv with nix flake inputs. BREAKING CHANGES: The project.nix module is now exposed as an output `projectModules.pre-commit-hooks` on the flake instead of a separate file. Fixes cachix#57
@Myhlamaeus any chance you can rebase your PR? |
I've closed that PR as it was out of date and not the approach I'd like to see merged - flake.nix shouldn't duplicate code from non-flake bits. I'm going to start working towards flake support, starting with cleanups like #100 |
Bumping packages with more cleanup at #102 |
#103 is ready to be merged, I'd like someone that uses flakes to give it a try! Exposing |
I'm trying it out here: https://github.com/hackworthltd/haskell-template/tree/pre-commit-hooks-flake I'm probably being dense, but it's not clear to me out to use but I'm getting this error:
|
Oh, skip |
I tried that as well, but no:
|
You can try with |
Yes, this now works, thanks so much! |
Merged, thanks! |
Currently its not possible to use this with
nix develop
because it internally re-imports nixpkgs:The text was updated successfully, but these errors were encountered: