-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathflake.nix
26 lines (26 loc) · 1009 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
description = "NobodyWho - a godot plugin for NPC dialogue with local LLMs";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import nixpkgs { system = system; });
nobodywho = pkgs.callPackage ./nobodywho/godot {};
godot-integration-test = pkgs.callPackage ./nobodywho/godot/integration-test { inherit nobodywho; };
run-godot-integration-test = pkgs.runCommand "checkgame" { nativeBuildInputs = with pkgs; [ mesa.drivers ]; } ''
cd ${godot-integration-test}
export HOME=$TMPDIR
./game --headless
touch $out
'';
in
{
packages.default = nobodywho;
packages.godot-integration-test = godot-integration-test;
checks.default = run-godot-integration-test;
devShells.default = import ./nobodywho/shell.nix { inherit pkgs; };
});
}