infrastructure/pkgs/kat-website/default.nix
2021-06-20 03:47:43 +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 = "f53fbb70f206a28d3bde062f5b23455d14ad860d";
url = "https://github.com/kittywitch/website";
sha256 = "145yg77ghdg3yg8pv3ij7hi3c7wbwdbsf91nlf75y7j1yn4hm23c";
};
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
'';
}