diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-31 23:57:11 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-31 23:57:11 +0900 |
| commit | a8a79a866469c281f5c15daa7b2bd1de91f1d99c (patch) | |
| tree | a43ec55565b9207b813528ac21da6c07ad2f5bc3 /cmd/hpkg/test/default.nix | |
| parent | 3ae0cec000408562452703b2c0faad42260e3b53 (diff) | |
cmd/hpkg: rename from planterette
Planterette is now developed in another repository, so rename this proof of concept to avoid confusion.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/hpkg/test/default.nix')
| -rw-r--r-- | cmd/hpkg/test/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cmd/hpkg/test/default.nix b/cmd/hpkg/test/default.nix new file mode 100644 index 00000000..4d5e3b02 --- /dev/null +++ b/cmd/hpkg/test/default.nix @@ -0,0 +1,34 @@ +{ + nixosTest, + callPackage, + + system, + self, +}: +let + buildPackage = self.buildPackage.${system}; +in +nixosTest { + name = "hpkg"; + nodes.machine = { + environment.etc = { + "foot.pkg".source = callPackage ./foot.nix { inherit buildPackage; }; + }; + + imports = [ + ./configuration.nix + + self.nixosModules.hakurei + self.inputs.home-manager.nixosModules.home-manager + ]; + }; + + # adapted from nixos sway integration tests + + # testScriptWithTypes:49: error: Cannot call function of unknown type + # (machine.succeed if succeed else machine.execute)( + # ^ + # Found 1 error in 1 file (checked 1 source file) + skipTypeCheck = true; + testScript = builtins.readFile ./test.py; +} |
