summaryrefslogtreecommitdiff
path: root/hosts/surtr/email/spm/default.nix
blob: 75f99d8d119b0723c2bf30f87b4326f495f8763e (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
{ haskell, fetchFromGitHub }:

let
  # defaultPackages = (import ./stackage.nix {});
  # haskellPackages = defaultPackages // argumentPackages;
  # haskellPackages = argumentPackages;
  haskellPackages = haskell.packages.ghc922.override {
    overrides = self: super: {
       warp-systemd = haskell.lib.doJailbreak (super.warp-systemd.overrideAttrs (oldAttrs: { meta = oldAttrs.meta // { broken = false; }; })); 
       servant-server = super.servant-server.overrideAttrs (oldAttrs: {
         patches = [];
       });
       hpack = super.hpack.overrideAttrs (oldAttrs: rec {
         version = "0.35.0";
         src = fetchFromGitHub {
           owner = "sol";
           repo = "hpack";
           rev = "0.35.0";
           hash = "sha256-DMxCHwz9x2e4kSOIk1/qeW3aDFHw88LNW+4vXxDV9EI=";
         };
       });
    };
  };
in haskellPackages.callPackage ./spm.nix {}