Add building and linking Agda as build step
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
13
lib.nix
13
lib.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user