fork/Slippi-Presence

git clone https://git.julia.blue/fork/Slippi-Presence

Julia Ryanwip: get building under nix488f83e

main
1011 B36 linesraw
1{
2  inputs = {
3    utils.url = "github:numtide/flake-utils";
4  };
5  outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
6    let
7      pkgs = nixpkgs.legacyPackages.${system};
8    in
9    {
10      devShell = pkgs.mkShell {
11        buildInputs = with pkgs; [
12          (python3.withPackages (pp: [
13            pp.pypresence
14            (callPackage ({ lib, buildPythonPackage, cython, fetchFromGitHub, }:
15              buildPythonPackage rec {
16                pname = "py-slippi";
17                version = "1.6.2";
18                format = "setuptools";
19
20                src = fetchPypi {
21                  inherit pname version;
22                  hash = "sha256-c6tJI/mPlBGIYTk5ObIQ1CUTq73HouQ2quMZVWG8FFg=";
23                };
24
25                env.JQPY_USE_SYSTEM_LIBS = 1;
26                nativeBuildInputs = [ cython ];
27                buildInputs = [ jq oniguruma ];
28                nativeCheckInputs = [ pytestCheckHook ];
29            }))
30          ]))
31        ];
32      };
33    }
34  );
35}
36