~yoctocell/flaskell

ref: acdefda54f634cbf1f71a950bcd62966ad956d60 flaskell/default.nix -rw-r--r-- 630 bytes
acdefda5yoctocell default.nix: Add shell hook 1 year, 11 months ago
                                                                                
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
30
31
32
{ sources ? import ./nix/sources.nix
, pkgs ? import sources.nixpkgs
, compiler ? "ghc884"
}:
let
  haskellPackages = pkgs.haskell.packages.${compiler}.override {
    overrides = hpNew: hpOld: {
      flaskell = hpNew.callCabal2nix "flaskell" ./. { };
    };
  };

  flaskell = haskellPackages.flaskell;
in
{
  inherit flaskell;

  flaskellShell = haskellPackages.shellFor {
    packages = p: with p; [
      flaskell
    ];

    buildInputs = with haskellPackages; [
      brittany
      cabal-install
      flaskell
    ];

    shellHook = ''
      git config sendemail.to '~yoctocell/flaskell-devel@lists.sr.ht'
    '';
  };
}