mirror of
https://github.com/dolphin-emu/netplay-index.git
synced 2024-10-06 23:23:23 +00:00
a102293eb4
I work on a virtual machine, and it doesn't seem to be fast enough for the standard 5 second timeout somehow.
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{
|
|
description = "Dolphin's NetPlay Index / Lobby Server";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
|
|
inputs.poetry2nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
outputs = { self, nixpkgs, flake-utils, poetry2nix }: {
|
|
overlay = nixpkgs.lib.composeManyExtensions [
|
|
poetry2nix.overlays.default
|
|
(final: prev: {
|
|
netplay-index = prev.poetry2nix.mkPoetryApplication {
|
|
projectDir = ./.;
|
|
checkPhase = "GEOIP_DATABASE_PATH=testdata/GeoLite2-Country.mmdb ASYNC_TEST_TIMEOUT=30 pytest";
|
|
};
|
|
})
|
|
];
|
|
} // (flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlay ];
|
|
};
|
|
in rec {
|
|
packages.netplay-index = pkgs.netplay-index;
|
|
defaultPackage = pkgs.netplay-index;
|
|
|
|
devShells.default = with pkgs; mkShell {
|
|
buildInputs = [ python3Packages.poetry ];
|
|
};
|
|
}
|
|
));
|
|
}
|