diff options
Diffstat (limited to 'pkgs/applications/emulators/craftos-pc/test-eval-hello-world/default.nix')
-rw-r--r-- | pkgs/applications/emulators/craftos-pc/test-eval-hello-world/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/craftos-pc/test-eval-hello-world/default.nix b/pkgs/applications/emulators/craftos-pc/test-eval-hello-world/default.nix new file mode 100644 index 0000000000000..b2d887428a0e9 --- /dev/null +++ b/pkgs/applications/emulators/craftos-pc/test-eval-hello-world/default.nix @@ -0,0 +1,18 @@ +{ stdenv +, craftos-pc +, grep +}: + +stdenv.mkDerivation { + name = "craftos-pc-test-eval-hello-world"; + meta.timeout = 60; + nativeBuildInputs = [ craftos-pc grep ]; + buildCommand = '' + export HOME=$(pwd) + mkdir $HOME/.local $HOME/.config + export XDG_CONFIG_DIR=$HOME/.config + export XDG_DATA_DIR=$HOME/.local + craftos --headless --script ${./init.lua} | grep "Hello Nixpkgs!" > /dev/null + touch $out + ''; +} |