-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Let shell.nix depend on nix flake
It's usually better to have one source of truth (regarding package sources/versions) than two. So, use the compatibility mixin for those who want to keep using shell.nix. GHC 9.2 is not supported anymore ("end of life".) Thus, we don't need overrides for it.
- Loading branch information
1 parent
76a27a4
commit 0ee5afe
Showing
3 changed files
with
26 additions
and
17 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 |
---|---|---|
@@ -1,17 +1,10 @@ | ||
let | ||
# cure = x: pkgs.haskell.lib.dontCheck (pkgs.haskell.lib.doJailbreak x); | ||
haskellOverlay = self: super: { | ||
haskellPackages = super.haskell.packages.ghc922.override { | ||
overrides = hself: hsuper: rec { | ||
ghc-lib-parser = hsuper.ghc-lib-parser_9_2_2_20220307; | ||
}; | ||
}; | ||
}; | ||
in | ||
{ pkgs ? import <nixpkgs> { overlays = [ haskellOverlay ]; } }: | ||
|
||
pkgs.mkShell { | ||
buildInputs = [ | ||
pkgs.haskellPackages.ormolu_0_5_0_0 | ||
]; | ||
} | ||
(import | ||
( | ||
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in | ||
fetchTarball { | ||
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.flake-compat.locked.narHash; | ||
} | ||
) | ||
{ src = ./.; } | ||
).shellNix |