infrastructure/pkgs/kat-website/default.nix
2021-03-28 03:00:34 +01:00

28 lines
638 B
Nix

{ fetchgit, stdenv, lib, bundler, ruby, bundlerEnv }:
stdenv.mkDerivation rec {
pname = "kat-website";
version = "0.1";
src = fetchgit {
rev = "acd18f1dce17636bbcae17dfd4c3a98b18481e58";
url = "https://git.kittywit.ch/kat/website.git";
sha256 = "1hzv0dms8wc3r87mf56g6lw6h6c46dh43k9025h4yi12knrmppsl";
};
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
'';
}