94be8ad755
Add the start of an ssh-compatible server application for playing Xanthous over ssh. The idea here is that the user can ssh with whatever username they like (defaulting obviously to their login username) and then that gets passed as the --name flag to xanthous as they play. Change-Id: I39eec288ac8e22a165e859479888d78158a58818 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3806 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
25 lines
689 B
Nix
25 lines
689 B
Nix
{ depot ? (import ../../../. {})
|
|
, pkgs ? depot.third_party.nixpkgs
|
|
, ... }:
|
|
|
|
let
|
|
ignore = depot.third_party.gitignoreSource.gitignoreFilter ./.;
|
|
src = builtins.path {
|
|
name = "xanthous-source";
|
|
path = ./.;
|
|
filter = path: type:
|
|
!(type == "directory" && builtins.baseNameOf path == "server")
|
|
&& (ignore path type
|
|
|| builtins.baseNameOf path == "package.yaml");
|
|
};
|
|
# generated by cabal2nix
|
|
basePkg = pkgs.haskellPackages.callPackage ./pkg.nix { };
|
|
in
|
|
|
|
pkgs.haskell.lib.overrideCabal basePkg (default: {
|
|
inherit src;
|
|
version = "canon";
|
|
configureFlags = [
|
|
"--ghc-option=-Wall --ghc-option=-Werror"
|
|
] ++ (default.configureFlags or []);
|
|
})
|