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 = "f29a25848ef9cae2b92815816f231c84a973f83a";
|
|
url = "https://github.com/kittywitch/website";
|
|
sha256 = "1ysq5jzwrz20wghdwpsqjy5yyi879q8hkp1cv2yz6151h08w6kqy";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|
|
|