-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Nixify #41
base: master
Are you sure you want to change the base?
Conversation
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 have an example you can crib from.
flake.nix
Outdated
outputs = inputs@{ self, nixpkgs, flake-parts, ... }: | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
systems = nixpkgs.lib.systems.flakeExposed; | ||
imports = [ inputs.haskell-flake.flakeModule ]; |
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.
You may want to pull in a pre-commit hooks module, see https://git.sr.ht/~jack/hslua-fennel-demo/tree/master/item/flake.nix for an example.
flake.nix
Outdated
devShell = { | ||
# Enabled by default | ||
enable = true; | ||
|
||
# Programs you want to make available in the shell. | ||
# Default programs can be disabled by setting to 'null' | ||
# tools = hp: { fourmolu = hp.fourmolu; ghcid = null; }; | ||
|
||
hlsCheck.enable = true; | ||
}; | ||
}; | ||
|
||
# haskell-flake doesn't set the default package, but you can do it here. | ||
packages.default = self'.packages.amazonka-s3-streaming; |
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 didn't seem to need all that much of this.
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.
Not sure I understand what you're suggesting I change here.
No description provided.