~yoctocell/yoctocell.xyz

ref: d76555f6658decd27ac5c3401e9803144bfc264e yoctocell.xyz/default.nix -rw-r--r-- 702 bytes
d76555f6 — yoctocell posts/hello-word: Update 1 year, 6 days 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;
  };
}