Add building and linking Agda as build step

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2024-05-23 07:37:52 +00:00
parent abba267fec
commit ee116b138f
4 changed files with 57 additions and 7 deletions

13
lib.nix
View File

@@ -5,9 +5,18 @@ with lib;
let
protocol = ssl: if ssl then "https://" else "http://";
gems = bundlerEnv {
inherit ruby;
name = "blog-static-flake";
gemfile = "${blog-source}/Gemfile";
lockfile = "${blog-source}/Gemfile.lock";
gemset = ./gemset.nix;
};
website = settings: stdenv.mkDerivation {
inherit (settings) src ssl host;
inherit resume;
inherit resume gems ruby;
name = "blog-static";
version = settings.src.rev or "dirty";
publicPath = settings.path;
@@ -18,7 +27,7 @@ let
builder = ./build/builder.sh;
webFiles = web-files;
buildInputs = [
hugo ruby stork katex-html
hugo ruby stork katex-html (agda.withPackages [ agdaPackages.standard-library ])
];
};
in