mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
28 lines
636 B
Nix
28 lines
636 B
Nix
{ fetchgit, stdenv, lib, bundler, ruby, bundlerEnv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kat-website";
|
|
version = "0.1";
|
|
|
|
src = fetchgit {
|
|
rev = "93f68ca3d1d0997fd04087355d6d112a186f4945";
|
|
url = "https://github.com/kittywitch/website";
|
|
sha256 = "0jmrwz277m43l2kzbibhgyfh14q8rbabq4c7kprcpgd0myfzcrpg";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|
|
|