1
0
Fork 0
mirror of https://github.com/malob/prefmanager.git synced 2024-12-14 11:57:49 +00:00

Update nix-shell to use haskell.nix

This commit is contained in:
Malo Bourgon 2020-10-08 12:14:28 -07:00
parent bdf9eae327
commit b0025f2acd

View file

@ -1,11 +1,11 @@
{ pkgs ? import (import ./nix/sources.nix).nixpkgs {} }:
with pkgs;
mkShell {
let
pkgs = import (import ./nix/sources.nix).nixpkgs {};
hsPkgs = import ./default.nix {};
compiler-name = hsPkgs.prefmanager.project.pkg-set.config.compiler.nix-name;
in hsPkgs.shellFor {
buildInputs = [
haskell.packages.ghc884.haskell-language-server
cabal2nix
stack
niv
pkgs.haskell.packages.${compiler-name}.haskell-language-server
pkgs.stack
pkgs.niv
];
}