aboutsummaryrefslogtreecommitdiff
path: root/nix/site.nix
blob: 9c8278be8121220c9dedf22b859c810f270d4c9d (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
{ pkgs }:

pkgs.stdenvNoCC.mkDerivation {
  pname = "kassouni-net";
  version = "0.1.0";

  # style/ sits outside the zola project because cgit shares its partials
  src = pkgs.lib.fileset.toSource {
    root = ../.;
    fileset = pkgs.lib.fileset.unions [
      ../site
      ../style
    ];
  };

  nativeBuildInputs = [ pkgs.zola ];

  buildPhase = "zola --root site build";
  installPhase = "cp -r site/public $out";

  meta = {
    description = "The personal website of Alex Kassouni";
    license = pkgs.lib.licenses.mit;
    platforms = pkgs.lib.platforms.all;
  };
}