{ pkgs ? import {}, ... }: let risotto-src = pkgs.fetchFromGitHub { owner = "jacekpoz"; repo = "risotto"; rev = "7c8cdd97cca30c49f0c13cf2e049f43b39b49d75"; hash = "sha256-CX4aLTY1Z6E0QoRQIUOmfhG1gGCCnLqwBiLjhVMSpY8="; }; in pkgs.stdenv.mkDerivation { name = "jacekpoz.pl"; version = "0.1"; src = ./.; buildInputs = with pkgs; [ hugo ]; dontConfigure = true; buildPhase = '' cp -r $src/* . cp -r ${risotto-src} ./themes/risotto ${pkgs.hugo}/bin/hugo ''; installPhase = '' mkdir -p $out cp -r ./public/* $out/ ''; }