Skip to content

Conversation

haglobah
Copy link
Contributor

No description provided.

@BinderDavid
Copy link
Collaborator

Ping @MangoIV . Can you take a look at the nix flake?

Copy link
Contributor

@MangoIV MangoIV left a 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
Comment on lines 47 to 57
# 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;
# };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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;

Comment on lines 41 to 43
alejandra.enable = true;
statix.enable = true;
deadnix.enable = true;
Copy link
Contributor

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.

Suggested change
alejandra.enable = true;
statix.enable = true;
deadnix.enable = true;
alejandra.enable = true;
deadnix.enable = true;

Comment on lines +38 to +39
cabal-fmt.enable = true;
hlint.enable = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
systems = ["x86_64-linux"];
systems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];

deadnix.enable = true;
};
};
haskellProjects.ghc96 = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Comment on lines 22 to 23
# pkgs,
# lib,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# pkgs,
# lib,
pkgs,

This will be needed if you fix the basePackages, otherwise it can also be removed.

Copy link
Contributor

@MangoIV MangoIV left a 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 :)

@BinderDavid BinderDavid merged commit c08ff94 into haskellfoundation:main Oct 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants