summaryrefslogtreecommitdiff
path: root/pkgs/academic-webpage/default.nix
blob: c4c828cb81fffab075295e8e8c3ac0d565ab3e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs, stdenv, ... }:

stdenv.mkDerivation rec {
  pname = "academic-webpage";
  version = "2021-08-14";

  buildInputs = with pkgs; [ hugo ];

  src = pkgs.fetchFromGitHub {
    owner = "qaristote";
    repo = "academic-webpage";
    rev = "51211cc9521fc7ff32e9d0e0315a45904f909f15";
    sha256 = "1874v3x7ks8lqiivvacdfqznlpnqizdk559h8kc5swlrh1pc7bzx";
    fetchSubmodules = true;
  };

  phases = [ "unpackPhase" "buildPhase" ];

  buildPhase = ''
    hugo --destination $out
  '';
}