-
Notifications
You must be signed in to change notification settings - Fork 70
Add basic haskell-nix setup #544
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
Conversation
Ping @MangoIV . Can you take a look at the nix flake? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. Please consider adding a documentation section of how to use this.
flake.nix
Outdated
# packages = {}; | ||
# settings = {}; | ||
projectRoot = ./message-index; | ||
# devShell.mkShellArgs = { | ||
# packages = [ | ||
# # pkgs.zlib.dev | ||
# # pkgs.haskellPackages.zlib | ||
# # pkgs.haskellPackages.zlib_0_7_1_0.dev | ||
# ]; | ||
# # shellHook = config.pre-commit.installationScript; | ||
# }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# packages = {}; | |
# settings = {}; | |
projectRoot = ./message-index; | |
# devShell.mkShellArgs = { | |
# packages = [ | |
# # pkgs.zlib.dev | |
# # pkgs.haskellPackages.zlib | |
# # pkgs.haskellPackages.zlib_0_7_1_0.dev | |
# ]; | |
# # shellHook = config.pre-commit.installationScript; | |
# }; | |
projectRoot = ./message-index; |
alejandra.enable = true; | ||
statix.enable = true; | ||
deadnix.enable = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it would be good to remove statix from here, it sucks.
alejandra.enable = true; | |
statix.enable = true; | |
deadnix.enable = true; | |
alejandra.enable = true; | |
deadnix.enable = true; |
cabal-fmt.enable = true; | ||
hlint.enable = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cabal-fmt.enable = true; | |
hlint.enable = true; | |
cabal-fmt.enable = true; | |
hlint.enable = true; | |
ormolu.enable = true; |
flake.nix
Outdated
}; | ||
outputs = inputs: | ||
inputs.parts.lib.mkFlake {inherit inputs;} { | ||
systems = ["x86_64-linux"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
systems = ["x86_64-linux"]; | |
systems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; |
deadnix.enable = true; | ||
}; | ||
}; | ||
haskellProjects.ghc96 = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haskellProjects.ghc96 = { | |
haskellProjects.ghc96 = { | |
basePackages = pkgs.haskell.packages.ghc96; |
alternatively you can also rename this to smth like default-haskell
or you can search fo the option on flake.parts that switches off the automatic population of default
.
flake.nix
Outdated
# pkgs, | ||
# lib, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# pkgs, | |
# lib, | |
pkgs, |
This will be needed if you fix the basePackages
, otherwise it can also be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me :)
No description provided.