Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Nixify #41

wants to merge 8 commits into from

Conversation

axman6
Copy link
Owner

@axman6 axman6 commented Mar 28, 2024

No description provided.

@axman6 axman6 requested a review from endgame March 28, 2024 06:43
Copy link
Collaborator

@endgame endgame left a 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 Show resolved Hide resolved
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 ];
Copy link
Collaborator

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
Comment on lines 41 to 54
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;
Copy link
Collaborator

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.

Copy link
Owner Author

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.

flake.nix Show resolved Hide resolved
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.

2 participants