blob: a3ce768f6a3e66b4c748254416256ad5594f5e38 (
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
26
27
28
29
|
{ pkgs ? import sources.nixpkgs {
overlays = [
(import ./pkgs { inherit (pkgs.haskell) lib; })
];
}
, sources ? import ./nix/sources.nix
}:
let
ghc = "ghc910";
haskellPackages = pkgs.pkgsCross.ghcjs.haskell.packages.${ghc};
acms = (import sources.acms { }).acms;
in
rec {
inherit haskellPackages;
inherit (haskellPackages) achat;
shell = haskellPackages.shellFor {
packages = _: [
haskellPackages.achat
];
nativeBuildInputs = [
acms
pkgs.haskell.packages.${ghc}.cabal-install
pkgs.haskell.packages.${ghc}.ormolu
];
shellHook = ''
export EM_CACHE="${toString ./.}/.emcache" # nixos/nixpkgs#282509
'';
};
}
|