blob: 060a4c7c30e37a6bea56a19eda4322b8235154c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{ pkgs ? import sources.nixpkgs { }
, sources ? import ./nix/sources.nix
}:
let
haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: {
acms = self.callCabal2nix "acms" ./. { };
astore = self.callCabal2nix "astore" sources.json2sql { };
autotypes = self.callCabal2nix "autotypes" ./autotypes { };
json2sql = self.callCabal2nix "json2sql" sources.json2sql { };
};
};
in
rec {
inherit (haskellPackages) acms;
shell = haskellPackages.shellFor {
packages = _: [ acms haskellPackages.autotypes ];
buildInputs = [
haskellPackages.cabal-install
haskellPackages.ormolu
];
withHoogle = true;
withHaddock = true;
};
}
|