-
Notifications
You must be signed in to change notification settings - Fork 20
/
flake.nix
36 lines (32 loc) · 1.2 KB
/
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
34
35
36
{
description = "Purebred development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/haskell-updates";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }: {
overlays.default = final: prev:
let
overlays = import .nix/overlays.nix;
in
prev.lib.composeManyExtensions overlays final prev;
} // utils.lib.eachSystem ["x86_64-linux"] (system:
let
pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; };
in rec {
packages = {
default = self.packages.${system}.purebred-with-packages-icu;
purebred-with-packages = pkgs.purebred-with-packages;
purebred-with-packages-icu = pkgs.purebred-with-packages-icu;
purebred = pkgs.haskellPackages.purebred;
purebred-email = pkgs.haskellPackages.purebred-email;
purebred-icu = pkgs.haskellPackages.purebred-icu;
dyre = pkgs.haskellPackages.dyre;
brick = pkgs.haskellPackages.brick;
# shell "packages" for `nix develop .#shell-with/out-icu`
shell-without-icu = pkgs.make-purebred-shell false;
shell-with-icu = pkgs.make-purebred-shell true;
};
devShells.default = packages.shell-without-icu;
});
}