diff options
Diffstat (limited to 'overlays/kookie/spacekookie-de/default.nix')
-rw-r--r-- | overlays/kookie/spacekookie-de/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/overlays/kookie/spacekookie-de/default.nix b/overlays/kookie/spacekookie-de/default.nix new file mode 100644 index 00000000000..a15af12b5fa --- /dev/null +++ b/overlays/kookie/spacekookie-de/default.nix @@ -0,0 +1,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; + }; + } + |