aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/default.nix
blob: cc883c03e5cc7f76eb21651c9a74dba1a2e86c18 (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
{ sources ? import ../nix/sources.nix
}:
(self: super:
  let
    pkgs = self;
    haskellLib = pkgs.haskell.lib;
  in
  {
    haskell = super.haskell // {
      packageOverrides = pkgs.lib.composeManyExtensions [
        super.haskell.packageOverrides
        (self: super: {
          acms = self.callCabal2nix "acms" ../acms { };
          astore = haskellLib.doJailbreak (self.callCabal2nix "astore" sources.json2sql { });
          autotypes = self.callCabal2nix "autotypes" ../autotypes { };
          frontend = self.callCabal2nix "frontend" ../frontend { };
          sh = haskellLib.dontCheck (self.callCabal2nix "sh" sources.sh { });
          repline = haskellLib.doJailbreak super.repline;
          uuid = haskellLib.doJailbreak super.uuid;
          websockets = haskellLib.doJailbreak super.websockets;
          hinotify = super.hinotify.overrideAttrs (_: {
            version = "0.4.2";
            src = builtins.fetchTarball "https://hackage.haskell.org/package/hinotify-0.4.2/hinotify-0.4.2.tar.gz";
          });
        })
      ];
    };
  })