~yoctocell/yoctocell.xyz

ref: c1413e05cd41afb2555b523eebc16fd44b565929 yoctocell.xyz/default.nix -rw-r--r-- 702 bytes
c1413e05 — yoctocell Add about and contacts page 10 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
33
34
35
36
37
38
39
40
41
42
43
44
45
# { pkgs, ... }:
# let
#   myEnv = pkgs.haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [
#     cabal-install
#     hakyll
#   ]);
# in
# {
#   myShell = pkgs.mkShell {
#     buildInputs = [
#       myEnv
#     ];
#   };
# }




{ compiler ? "ghc884"
, pkgs
}:
let
  haskellPackages = pkgs.haskell.packages.${compiler}.override {
    overrides = hpNew: hpOld: {

      yoctocell-xyz = hpNew.callCabal2nix "yoctocell-xyz" ./. { };

    };
  };

  project = haskellPackages.yoctocell-xyz;
in
{
  myProject = project;

  myShell = haskellPackages.shellFor {
    packages = p: with p; [
      project
    ];
    buildInputs = with haskellPackages; [
      brittany
    ];
    withHoogle = true;
  };
}