aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/default.nix
blob: 3957c076cf0a725e1bad7a50523eeb57e12cfc8c (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
{ sources ? import ../nix/sources.nix
, ...
}:
(self: super:
  let pkgs = self; in
  {
    haskell = super.haskell // {
      packageOverrides = pkgs.lib.composeManyExtensions [
        super.haskell.packageOverrides
        (self: super: {
          achat = (self.callCabal2nix "achat" ../. { }).overrideAttrs (_: {
            postInstall = ''
              mkdir -p $out/share
              cp -a ./dist/build/achat/achat.jsexe $out/share
            '';
          });
          haskell-halogen-core = pkgs.haskell.lib.dontCheck (self.callCabal2nix "haskell-halogen-core" sources.haskell-halogen { });
          protolude = pkgs.haskell.lib.dontHaddock (
            pkgs.haskell.lib.appendConfigureFlags (pkgs.haskell.lib.doJailbreak super.protolude) [
              "--ghc-option=-fno-safe-haskell"
              "--ghc-option=-fno-warn-x-partial"
            ]);
          clay = self.callHackage "clay" "0.15.0" { };
        })
      ];
    };
  })