summaryrefslogtreecommitdiff
path: root/default.nix
blob: 6e792e9043a0328563e45536de59582c301b7340 (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
29
{ pkgs ? (import <nixpkgs> {})
, compilerName ? "ghc801"
}:

rec {
  # haskellPackages = pkgs.haskell.packages."${compilerName}";
  haskellPackages = pkgs.haskell.packages."${compilerName}".override {
    overrides = self: super: {
      Shellac = pkgs.stdenv.lib.overrideDerivation super.Shellac (oldAttrs: {
        src = pkgs.fetchFromGitHub {
          owner = "pngwjpgh";
          repo = "shellac";
          rev = "b88a92bace5106e7446bc81688d675994f829282";
          sha256 = "1qpnbnclz1xwisg9wgs4yl8y0ral01pqy8jnq6g7z1xbc8p6qn0i";
        };
      });
      Shellac-haskeline = pkgs.stdenv.lib.overrideDerivation super.Shellac-haskeline (oldAttrs: {
        src = pkgs.fetchFromGitHub {
          owner = "pngwjpgh";
          repo = "shellac";
          rev = "b88a92bace5106e7446bc81688d675994f829282";
          sha256 = "1qpnbnclz1xwisg9wgs4yl8y0ral01pqy8jnq6g7z1xbc8p6qn0i";
        };
        unpackPhase = "cp -r $src/shellac-haskeline/. .";
      });
    };
  };
  sequence = haskellPackages.callPackage ./sequence.nix {};
}