2020-12-10 19:47:11 +02:00
|
|
|
with (import <nixpkgs> {});
|
|
|
|
|
2021-10-29 17:22:29 +03:00
|
|
|
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
|
|
|
|
|
2021-10-29 17:22:29 +03:00
|
|
|
hp.shellFor {
|
|
|
|
packages = h: [h.addressbook];
|
2020-12-10 19:47:11 +02:00
|
|
|
buildInputs = [
|
|
|
|
ghcid
|
2021-10-29 17:22:29 +03:00
|
|
|
easy-hls
|
2020-12-10 19:47:11 +02:00
|
|
|
stylish-haskell
|
|
|
|
haskellPackages.cabal-install
|
|
|
|
];
|
|
|
|
}
|