aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
blob: 9c7a8a12f6f04d18f57d687d65160cad068723c2 (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
{ 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};
in
rec {
  inherit haskellPackages;
  inherit (haskellPackages) achat;
  shell = haskellPackages.shellFor {
    packages = _: [
      haskellPackages.achat
    ];
    nativeBuildInputs = [
      pkgs.haskell.packages.${ghc}.cabal-install
      pkgs.haskell.packages.${ghc}.ormolu
    ];
    shellHook = ''
      export EM_CACHE="${toString ./.}/.emcache" # nixos/nixpkgs#282509
    '';
  };
}