build02/nixpkgs-update: add supervisor-test
This commit is contained in:
parent
1acf75b6d9
commit
6884ff9b39
2 changed files with 17 additions and 0 deletions
|
@ -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 ];
|
||||
|
|
16
hosts/build02/supervisor_test.nix
Normal file
16
hosts/build02/supervisor_test.nix
Normal 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
|
||||
''
|
Loading…
Add table
Reference in a new issue