@@ -43,6 +43,19 @@ stdenv.mkDerivation rec {
4343 chmod +x $prefix/bin/${executable-name}
4444 '';
4545
46+ doCheck = true;
47+
48+ checkPhase = ''
49+ # Launcher should be able to run for a few seconds without crashing.
50+ (set +e
51+ export HOME=. # Pharo will try to create files here
52+ secs=5
53+ echo -n "Running headless Pharo for $secs seconds to check for a crash... "
54+ timeout $secs \
55+ ${pharo-vm}/bin/pharo-vm-nox PharoLauncher.image --no-quit eval 'true'
56+ test "$?" == 124 && echo "ok")
57+ '';
58+
4659 meta = {
4760 description = "Launcher for Pharo distributions";
4861 longDescription = ''
@@ -65,7 +78,7 @@ stdenv.mkDerivation rec {
6578 '';
6679 homepage = http://pharo.org;
6780 license = stdenv.lib.licenses.mit;
68− maintainers = [ ];
81+ maintainers = [ stdenv.lib.maintainers.lukego ];
6982 platforms = pharo-vm.meta.platforms;
7083 };
7184}