{ pkgs ? import { }, bundlerEnv, ... }: let version = "da0f23bc81217b6cca1c0cae07670991dd4c6da2"; repo = builtins.fetchGit { url = "https://github.com/ivabus/website"; rev = version; }; gems = bundlerEnv { name = "ivabus-dev"; ruby = pkgs.ruby; gemdir = "${repo}/."; }; in pkgs.stdenv.mkDerivation { inherit version; name = "ivabus-dev"; src = repo; buildInputs = with pkgs; [ gems # nokogiri dependencies zlib libiconv libxml2 libxslt # jekyll wants a JS runtime nodejs-slim ]; buildPhase = '' bundle exec jekyll build ''; installPhase = '' mkdir -p $out cp -r _site/* $out/ ''; }