-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
42 lines (35 loc) · 1.01 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
37
38
39
40
41
42
{
description = "Flake for myme.no";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlay ];
};
ssg = pkgs.myme-site.ssg;
in {
overlay = (final: parent: {
myme-site = parent.callPackage ./. { };
});
packages.${system} = pkgs.myme-site;
defaultPackage.${system} = self.packages.${system}.image;
devShells.${system} = {
# Development shell for the webpage (./site)
site = pkgs.mkShell {
buildInputs = [ ssg ];
};
# Development shell for the static site genrator (./ssg)
ssg = pkgs.haskellPackages.shellFor {
packages = ps: [ ssg ];
buildInputs = with pkgs.haskellPackages; [
cabal-install
ghcid
hlint
];
};
};
devShell.${system} = self.devShells.${system}.site;
};
}