39 lines
616 B
Nix
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/
|
|
'';
|
|
}
|