From 6884ff9b39850ea6d5e448f6b5df2f3faf5fdbbc Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Thu, 18 Apr 2024 11:36:39 +1000
Subject: [PATCH] build02/nixpkgs-update: add supervisor-test

---
 flake.nix                         |  1 +
 hosts/build02/supervisor_test.nix | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 hosts/build02/supervisor_test.nix

diff --git a/flake.nix b/flake.nix
index 839d0df..0f9713c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -87,6 +87,7 @@
               };
 
             packages = pkgs.lib.optionalAttrs defaultPlatform {
+              nixpkgs-update-supervisor-test = pkgs.callPackage ./hosts/build02/supervisor_test.nix { };
               pages = pkgs.runCommand "pages"
                 {
                   buildInputs = [ config.devShells.mkdocs.nativeBuildInputs ];
diff --git a/hosts/build02/supervisor_test.nix b/hosts/build02/supervisor_test.nix
new file mode 100644
index 0000000..323b7d8
--- /dev/null
+++ b/hosts/build02/supervisor_test.nix
@@ -0,0 +1,16 @@
+{ pkgs, ... }:
+
+pkgs.runCommand "nixpkgs-update-supervisor-test"
+{
+  buildInputs = [ (pkgs.python3.withPackages (ps: [ ps.asyncinotify ])) ];
+  files = pkgs.lib.fileset.toSource {
+    root = ./.;
+    fileset = pkgs.lib.fileset.unions [
+      ./supervisor.py
+      ./supervisor_test.py
+    ];
+  };
+} ''
+  python3 $files/supervisor_test.py
+  touch $out
+''