addressbook/shell.nix

25 lines
536 B
Nix
Raw Normal View History

2020-12-10 19:47:11 +02:00
with (import <nixpkgs> {});
let
hp = haskellPackages.extend (self: super: {
addressbook = self.callPackage ./. {};
});
easy-hls = callPackage easy-hls-src { ghcVersions = [ hp.ghc.version ]; };
easy-hls-src = fetchFromGitHub {
owner = "ssbothwell";
repo = "easy-hls-nix";
inherit (builtins.fromJSON (builtins.readFile ./easy-hls-nix.json)) rev sha256;
};
2020-12-10 19:47:11 +02:00
in
hp.shellFor {
packages = h: [h.addressbook];
2020-12-10 19:47:11 +02:00
buildInputs = [
ghcid
easy-hls
2020-12-10 19:47:11 +02:00
stylish-haskell
haskellPackages.cabal-install
];
}