infrastructure/pkgs/kat-website/default.nix
2021-06-22 02:35:45 +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 = "b0cbf5602c315534d145e07ed461807ee472822f";
url = "https://github.com/kittywitch/website";
sha256 = "04z183xl7gs4izw5z9l617m3z0rdy7pa39smmngbahs7bbsd7zid";
};
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
'';
}