blob: 68e8cf1825faafa83ee3189fa9621bf0c4930f18 (
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
32
|
{ stdenv, fetchFromGitHub, pkgs, ... }:
let
json = with builtins; fromJSON (readFile ./meta.json);
master = json.rev;
masterSha256 = json.sha256;
in
stdenv.mkDerivation rec {
name = "barrel-blog";
src = fetchFromGitHub {
owner = "spacekookie";
repo = "barrel";
rev = master;
sha256 = masterSha256;
};
buildInputs = with pkgs.pythonPackages; [ pelican webassets markdown ];
installPhase = ''
cd docs/
pelican content
cp -rv output $out
'';
meta = with stdenv.lib; {
description = "A static website running on https://barrel.spacekookie.de";
homepage = "https://barrel.spacekookie.de";
license = licenses.mit;
};
}
|