infrastructure/pkgs/kat-website/default.nix
2021-07-01 22:40:09 +01:00

28 lines
636 B
Nix

{ fetchgit, stdenv, lib, bundler, ruby, bundlerEnv }:
stdenv.mkDerivation rec {
pname = "kat-website";
version = "0.1";
src = fetchgit {
rev = "65b19be1a144c508f3aaaf72eef45e97c973d435";
url = "https://github.com/kittywitch/website";
sha256 = "0nmncgpqj6jswyj9wq4cy5jiliaycm0hx8icmycnqxblrkvkdfm6";
};
jekyll_env = bundlerEnv rec {
name = "jekyll_env";
inherit ruby;
gemfile = "${src}/Gemfile";
lockfile = "${src}/Gemfile.lock";
gemset = ./gemset.nix;
};
buildInputs = [ bundler ruby jekyll_env ];
installPhase = ''
mkdir $out
${jekyll_env}/bin/jekyll build -d $out
'';
}