mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
4851ef974d
The tests attempt to import 'grep' with the intention of using 'gnugrep'. This commit resolves that issue.
19 lines
441 B
Nix
19 lines
441 B
Nix
{ stdenv
|
|
, craftos-pc
|
|
, gnugrep
|
|
}:
|
|
stdenv.mkDerivation {
|
|
name = "craftos-pc-test-eval-periphemu";
|
|
meta.timeout = 60;
|
|
nativeBuildInputs = [ craftos-pc gnugrep ];
|
|
buildCommand = ''
|
|
export HOME=$(pwd)
|
|
mkdir $HOME/.local $HOME/.config
|
|
export XDG_CONFIG_DIR=$HOME/.config
|
|
export XDG_DATA_DIR=$HOME/.local
|
|
if craftos --headless --script ${./init.lua} | grep -q "FAIL"; then
|
|
exit 1
|
|
fi
|
|
touch $out
|
|
'';
|
|
}
|