-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Overhaul Nix configuration - allow usage of Nix Flakes - remove `niv` code (may be a controversial change) - redirect `nix-shell` to `flake.nix` * Fix minor typo in LSP configuration note * Treat `undefined` and `null` initialization options the same way Treat non-existing "initializationOptions", and `"initializationOptions": null` the same way. Fixes #604
- Loading branch information
Showing
10 changed files
with
151 additions
and
262 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ hie | |
hie.yaml | ||
.envrc | ||
**/.golden/*/actual | ||
/.direnv/ |
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,12 @@ | ||
(import ( | ||
let | ||
lock = builtins.fromJSON (builtins.readFile ./flake.lock); | ||
nodeName = lock.nodes.root.inputs.flake-compat; | ||
in | ||
fetchTarball { | ||
url = | ||
lock.nodes.${nodeName}.locked.url | ||
or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.${nodeName}.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.${nodeName}.locked.narHash; | ||
} | ||
) { src = ./.; }).defaultNix |
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,39 @@ | ||
{ | ||
description = "Haskell development environment"; | ||
|
||
inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"; | ||
|
||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
|
||
outputs = | ||
{ | ||
flake-utils, | ||
nixpkgs, | ||
... | ||
}: | ||
flake-utils.lib.eachDefaultSystem ( | ||
system: | ||
let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
hpkgs = pkgs.haskellPackages; | ||
in | ||
{ | ||
devShells.default = pkgs.mkShell { | ||
packages = [ | ||
# Haskell toolchain. | ||
hpkgs.cabal-fmt | ||
hpkgs.cabal-install | ||
hpkgs.fourmolu | ||
hpkgs.ghc | ||
hpkgs.haskell-language-server | ||
|
||
# Misc. | ||
pkgs.zlib | ||
pkgs.pkg-config | ||
]; | ||
}; | ||
} | ||
); | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.