-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
142 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ cabal.sandbox.config | |
*.eventlog | ||
.stack-work/ | ||
cabal.project.local | ||
|
||
# Nix build output | ||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
packages: . | ||
packages: | ||
. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
haskell-flake.url = "github:srid/haskell-flake"; | ||
}; | ||
outputs = inputs@{ self, nixpkgs, flake-parts, ... }: | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
systems = nixpkgs.lib.systems.flakeExposed; | ||
imports = [ inputs.haskell-flake.flakeModule ]; | ||
|
||
perSystem = { self', pkgs, ... }: { | ||
|
||
# Typically, you just want a single project named "default". But | ||
# multiple projects are also possible, each using different GHC version. | ||
haskellProjects.default = { | ||
# The base package set representing a specific GHC version. | ||
# By default, this is pkgs.haskellPackages. | ||
# You may also create your own. See https://zero-to-flakes.com/haskell-flake/package-set | ||
# basePackages = pkgs.haskellPackages; | ||
|
||
# Extra package information. See https://zero-to-flakes.com/haskell-flake/dependency | ||
# | ||
# Note that local packages are automatically included in `packages` | ||
# (defined by `defaults.packages` option). | ||
# | ||
# packages = { | ||
# aeson.source = "1.5.0.0"; # Hackage version override | ||
# shower.source = inputs.shower; | ||
# }; | ||
# settings = { | ||
# aeson = { | ||
# check = false; | ||
# }; | ||
# relude = { | ||
# haddock = false; | ||
# broken = false; | ||
# }; | ||
# }; | ||
|
||
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; | ||
}; | ||
}; | ||
} |