aboutsummaryrefslogtreecommitdiff
path: root/overlays/kookie/spacekookie-de/default.nix
blob: 4910490631794e3b7633e5e31128c3d25e75249e (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
{ stdenv, fetchFromGitHub, python3Packages }:

let
  json = with builtins; fromJSON (readFile ./meta.json);
  master = json.rev;
  masterSha256 = json.sha256;
in
  stdenv.mkDerivation rec {
    name = "spacekookie.de";

    src = fetchFromGitHub {
      owner = "spacekookie";
      repo = "website";
      rev = master;
      sha256 = masterSha256;
    }; 

    buildInputs = with python3Packages; [ pelican webassets markdown ];

    installPhase = ''
      pelican content
      cp -rv output $out
    '';

    meta = with stdenv.lib; {
      description = "The `about` and `blog` part of spacekookie.de";
      homepage = "https://spacekookie.de";
      license = licenses.mit;
    };
  }