build02/nixpkgs-update: add supervisor-test

This commit is contained in:
zowoq 2024-04-18 11:36:39 +10:00
parent 1acf75b6d9
commit 6884ff9b39
2 changed files with 17 additions and 0 deletions

View file

@ -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 ];

View file

@ -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
''