Files
homepage/nix/package.nix
Tom Alexander 0994de6055
Some checks failed
build-staging Build build-staging has failed
Add support for building the site via nix.
2026-07-12 17:26:23 -04:00

39 lines
616 B
Nix

{
hello,
lib,
pkgs,
natter,
organic_ast_explorer,
}:
let
in
pkgs.stdenv.mkDerivation rec {
pname = "homepage";
version = "0.0.0";
src = lib.cleanSource ../.;
nativeBuildInputs = [
# pkgs.simgrid
# pkgs.boost
# pkgs.cmake
];
configurePhase = "";
# TODO copy COPY --link --from=private /homepage_private/static /source/static/
buildPhase = ''
mkdir -p static/organic/ast_explorer
cp ${organic_ast_explorer}/* static/organic/ast_explorer/
${natter}/bin/natter build --config natter.toml
'';
installPhase = ''
mkdir -p $out
mv output/* $out/
'';
}