blob: a15af12b5fa5c4620d0475be0d41b2893e6fccd6 (
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, pkgs, ... }:
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 pkgs.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;
};
}
|