You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
802 B
34 lines
802 B
{ lib, stdenv, fetchFromGitea, python3Packages }:
|
|
|
|
let
|
|
pelicanNoTest = (python3Packages.pelican.overrideAttrs ({ ... }: {
|
|
doInstallCheck = false;
|
|
}));
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "spacekookie.de";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "dev.spacekookie.de";
|
|
owner = "kookie";
|
|
repo = "nomicon";
|
|
rev = "17e1381564906daefd396973794b3c5c3089f938";
|
|
sha256 = "2e6KdHB8DcQjDk7h471D3guX8nKZUmmhtZIFcIr4lRo=";
|
|
};
|
|
|
|
sourceRoot = "source/infra/website/";
|
|
|
|
buildInputs = with python3Packages; [ pelicanNoTest webassets markdown ];
|
|
|
|
installPhase = ''
|
|
pelican content
|
|
cp -r output $out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The 'about' and 'blog' part of spacekookie.de";
|
|
homepage = "https://spacekookie.de";
|
|
license = licenses.mit;
|
|
};
|
|
}
|
|
|
|
|