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

stdenv.mkDerivation {
  name = "academic-webpage";

  buildInputs = with pkgs; [ hugo ];

  src = pkgs.fetchFromGitHub {
    owner = "qaristote";
    repo = "academic-webpage";
    rev = "18e00fdd22643831376e012793574d9293243f6f";
    sha256 = "148gknjlwr71q5gkp4q7bnza64222izhn949ki14k7b9y7j486c6";
    fetchSubmodules = true;
  };

  phases = [ "unpackPhase" "buildPhase" ];

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