garbage/tests/default.nix

15 lines
289 B
Nix

{ stdenv, garbage, pkgs }:
stdenv.mkDerivation {
name = "garbage-tests";
src = ./.;
installPhase = "mkdir -p $out";
doCheck = true;
buildInputs = with pkgs; [ garbage proot mktemp mount which bash ];
checkPhase = ''
find . -executable -name "*.sh" | xargs bash
'';
}