"npx http-server ./generated-docs/html -o"
'';
};
# FIXME ctl-full purs-nix tests not working
# related to LovelaceAcademy/ctl-nix#29
# so we're using tests derivation for while
tests = pkgs.writeShellApplication {
# TODO we should move tests derivation to ctl-nix
name = "tests";
runtimeInputs = with pkgs; [
plutip-server
postgresql
ogmios
kupo
ogmios-datum-cache
];
text = ps.test.run { };
};
in
{
packages.default = ps.output { };
checks.default = pkgs.runCommand
"check"
{ }
''${tests}/bin/tests; touch $out'';
devShells.default =
pkgs.mkShell
https://github.com/LovelaceAcademy/nix-templates/blob/3d8865d6a523827b6ba2316e2b649b0c52eb7c50/ctl-full/flake.nix#L140