blob: faee116fca1e6077d2e8f473a759592212f5ef7a (
plain)
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 = "Main library for my webpage";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
};
outputs = { self, nixpkgs, flake-utils, nix-filter, ... }: {
overlays.default = import ./nix/overlay.nix { inherit nix-filter; };
} // flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
};
in {
packages = {
inherit (pkgs) site;
default = pkgs.site;
};
devShells.default = pkgs.haskellPackages.shellFor {
packages = _: [];
# packages = p: [ p.www-main ];
withHoogle = true;
buildInputs = with pkgs.haskellPackages; [
cabal-install
hpack
pkgs.zlib
pkgs.icu
];
};
});
}
|