-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lift inappropriate SafeToInsert constraints
- Loading branch information
1 parent
5d26091
commit 8566747
Showing
13 changed files
with
519 additions
and
67 deletions.
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
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,78 @@ | ||
{ | ||
inputs = { | ||
stable.url = "github:nixos/nixpkgs/nixos-23.11"; | ||
unstable.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
freckle.url = "github:freckle/flakes?dir=main"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
outputs = inputs: | ||
inputs.flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
nixpkgsArgs = { inherit system; config = { }; }; | ||
|
||
nixpkgs = { | ||
stable = import inputs.stable nixpkgsArgs; | ||
unstable = import inputs.unstable nixpkgsArgs; | ||
}; | ||
freckle = inputs.freckle.packages.${system}; | ||
freckleLib = inputs.freckle.lib.${system}; | ||
|
||
in | ||
rec { | ||
packages = { | ||
cabal = nixpkgs.stable.cabal-install; | ||
|
||
fourmolu = freckle.fourmolu-0-13-x; | ||
|
||
ghc = freckleLib.haskellBundle { | ||
ghcVersion = "ghc-9-4-6"; | ||
packageSelection = p: [ | ||
p.annotated-exception | ||
p.case-insensitive | ||
p.http-client | ||
p.http-client-tls | ||
p.hspec | ||
p.iproute | ||
p.network | ||
p.QuickCheck | ||
p.unliftio | ||
p.wai | ||
p.warp | ||
p.yesod-core | ||
]; | ||
}; | ||
|
||
haskell-language-server = | ||
nixpkgs.stable.haskell-language-server.override | ||
{ supportedGhcVersions = [ "946" ]; }; | ||
|
||
stack = nixpkgs.stable.writeShellApplication { | ||
name = "stack"; | ||
text = '' | ||
${nixpkgs.stable.stack}/bin/stack --system-ghc --no-nix "$@" | ||
''; | ||
}; | ||
}; | ||
|
||
devShells.default = nixpkgs.stable.mkShell { | ||
buildInputs = with (nixpkgs.stable); [ | ||
pcre | ||
pcre.dev | ||
zlib | ||
zlib.dev | ||
]; | ||
|
||
nativeBuildInputs = with (packages); [ | ||
cabal | ||
fourmolu | ||
ghc | ||
haskell-language-server | ||
stack | ||
]; | ||
|
||
shellHook = '' | ||
export STACK_YAML=stack.yaml | ||
''; | ||
}; | ||
}); | ||
} |
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
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
Oops, something went wrong.