-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Miscellaneous updates and bumps (#117)
* raise default stack resolver (bumps ghc from 9.2.6 to 9.2.7) * Raise nix shell ghc from 9.2.6 to 9.2.7 * expose dependencies from the nix flake (This is the same change I made in megarepo; it makes it easy to build individual dependencies and then do things like upload them to a cache.) * change mkShell arg from 'buildInputs' to 'packages' (Not sure it makes a difference but packages is the more documented path) * remove import-from-derivation from fourmolu definition * upgrade monad-validate to 1.3 in nightly
- Loading branch information
1 parent
d3dd4f9
commit 208b01f
Showing
12 changed files
with
87 additions
and
31 deletions.
There are no files selected for viewing
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
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,14 @@ | ||
{ nixpkgs }: | ||
{ | ||
cabal = import ./cabal.nix { inherit nixpkgs; }; | ||
|
||
fourmolu = import ./fourmolu { inherit nixpkgs; }; | ||
|
||
ghc-with-packages = import ./ghc-with-packages.nix { inherit nixpkgs; }; | ||
|
||
haskell-language-server = import ./haskell-language-server.nix { inherit nixpkgs; }; | ||
|
||
haskell-native-dependencies = import ./haskell-native-dependencies.nix { inherit nixpkgs; }; | ||
|
||
stack = import ./stack.nix { inherit nixpkgs; }; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ mkDerivation, aeson, ansi-terminal, array, base, binary | ||
, bytestring, Cabal-syntax, containers, deepseq, Diff, directory | ||
, file-embed, filepath, ghc-lib-parser, hspec, hspec-discover | ||
, hspec-megaparsec, lib, megaparsec, MemoTrie, mtl | ||
, optparse-applicative, path, path-io, pretty, process, QuickCheck | ||
, scientific, syb, temporary, text, th-env, yaml | ||
}: | ||
mkDerivation { | ||
pname = "fourmolu"; | ||
version = "0.13.0.0"; | ||
sha256 = "5102c41c159f41901cde28728d8f4e9feb443f3c4c8798a5c21ba78872fda257"; | ||
isLibrary = true; | ||
isExecutable = true; | ||
libraryHaskellDepends = [ | ||
aeson ansi-terminal array base binary bytestring Cabal-syntax | ||
containers deepseq Diff directory file-embed filepath | ||
ghc-lib-parser megaparsec MemoTrie mtl scientific syb text yaml | ||
]; | ||
executableHaskellDepends = [ | ||
base Cabal-syntax containers directory filepath ghc-lib-parser | ||
optparse-applicative text th-env yaml | ||
]; | ||
testHaskellDepends = [ | ||
base Cabal-syntax containers Diff directory filepath ghc-lib-parser | ||
hspec hspec-megaparsec megaparsec path path-io pretty process | ||
QuickCheck temporary text | ||
]; | ||
testToolDepends = [ hspec-discover ]; | ||
homepage = "https://github.com/fourmolu/fourmolu"; | ||
description = "A formatter for Haskell source code"; | ||
license = lib.licenses.bsd3; | ||
mainProgram = "fourmolu"; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ nixpkgs }: | ||
nixpkgs.stable.haskell-language-server.override | ||
{ supportedGhcVersions = [ "926" ]; } | ||
{ supportedGhcVersions = [ "927" ]; } |
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,14 +1,14 @@ | ||
{ nixpkgs }: | ||
nixpkgs.stable.mkShell { | ||
name = "freckle-app-shell"; | ||
buildInputs = | ||
map (x: import x { inherit nixpkgs; }) | ||
[ | ||
./cabal.nix | ||
./fourmolu.nix | ||
./ghc-with-packages.nix | ||
./haskell-language-server.nix | ||
./haskell-native-dependencies.nix | ||
./stack.nix | ||
]; | ||
packages = | ||
with (import ./. { inherit nixpkgs; }); | ||
[ | ||
cabal | ||
fourmolu | ||
ghc-with-packages | ||
haskell-language-server | ||
haskell-native-dependencies | ||
stack | ||
]; | ||
} |
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
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,4 +1,4 @@ | ||
resolver: lts-20.12 | ||
resolver: lts-20.20 | ||
extra-deps: | ||
- monad-validate-1.2.0.1 | ||
|
||
|
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