{ fetchgit, stdenv, lib, bundler, ruby, bundlerEnv }: stdenv.mkDerivation rec { pname = "kat-website"; version = "0.1"; src = fetchgit { rev = "52d21306c741f2e552c3c1193c6a18c50e6dc66d"; url = "https://github.com/kittywitch/website"; sha256 = "1z8z3qki9k2qqlmpjv1rklli2lsn97fb47swxjlqn8rbf5q2w9j8"; }; 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 ''; }