biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / emulators / craftos-pc / test-eval-periphemu / default.nix
blobaf1cca9c27a7529e0372d48d1e24154f7ff12323
1 { stdenv
2 , craftos-pc
3 , gnugrep
4 }:
5 stdenv.mkDerivation {
6   name = "craftos-pc-test-eval-periphemu";
7   meta.timeout = 60;
8   nativeBuildInputs = [ craftos-pc gnugrep ];
9   buildCommand = ''
10     export HOME=$(pwd)
11     mkdir $HOME/.local $HOME/.config
12     export XDG_CONFIG_DIR=$HOME/.config
13     export XDG_DATA_DIR=$HOME/.local
14     if craftos --headless --script ${./init.lua} | grep -q "FAIL"; then
15         exit 1
16     fi
17     touch $out
18   '';