-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
33 lines (30 loc) · 880 Bytes
/
flake.nix
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
{
nixConfig.bash-prompt = "[nix(module-loader)] ";
inputs = {
hspkgs.url =
"github:podenv/hspkgs/fe0dabfd8acf96f1b5cff55766de6284517868cf";
# "path:///srv/github.com/podenv/hspkgs";
};
outputs = { self, hspkgs }:
let
pkgs = hspkgs.pkgs;
haskellExtend = hpFinal: hpPrev: {
module-loader = hpPrev.callCabal2nix "module-loader" self { };
};
hsPkgs = pkgs.hspkgs.extend haskellExtend;
baseTools = with pkgs; [
hpack
cabal-install
hsPkgs.cabal-fmt
hlint
fourmolu
];
in {
packages."x86_64-linux".default =
pkgs.haskell.lib.justStaticExecutables hsPkgs.hdsp-demo;
devShell."x86_64-linux" = hsPkgs.shellFor {
packages = p: [ p.module-loader ];
buildInputs = with pkgs; [ ghcid haskell-language-server ] ++ baseTools;
};
};
}