infrastructure/pkgs/kat-website/default.nix
2021-04-04 23:25:32 +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 = "1a794edfd190f26c8cce3da18f3d3f5e10eb183b";
url = "https://github.com/kittywitch/website";
sha256 = "03isps1d5rmijjr2s2aaw3adrsrd1qavjsbbf488c0l5y3p5c58c";
};
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
'';
}