-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathflake.nix
More file actions
32 lines (30 loc) · 707 Bytes
/
flake.nix
File metadata and controls
32 lines (30 loc) · 707 Bytes
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
{
description = "patat";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs :
inputs.flake-utils.lib.eachDefaultSystem (system:
let pkgs = inputs.nixpkgs.legacyPackages.${system};
haskell = pkgs.haskell.packages.ghc98;
in
{
packages = {
default = haskell.callCabal2nix "patat" ./. {};
};
devShells = {
default = pkgs.mkShell {
packages = [
haskell.ghc
haskell.goldplate
haskell.stylish-haskell
pkgs.cabal-install
pkgs.entr
pkgs.wezterm
pkgs.zlib
];
};
};
});
}