{stdenv, fetchurl, ncurses}:

stdenv.mkDerivation {
  name = "bsod-0.1";

  src = fetchurl {
    url = http://www.vanheusden.com/bsod/bsod-0.1.tgz;
    sha256 = "0hqwacazyq5rhc04j8w8w0j0dgb6ca8k66c9lxf6bsyi6wvbhvmd";
  };

  buildInputs = [ ncurses ];

  installPhase = ''
    ensureDir $out/bin
    cp bsod $out/bin
  '';

  meta = {
    description = "Blue Screen Of Death emulator for Unix";
    longDescription = "
      This program will let you UNIX user experience the authentic
      microsoft windows experience.  Bsod displays the famous windows xp
      blue screen of death on the console.  Errors and drivers causing the
      error are selected randomly from a large set of examples.";
    homepage = "http://www.vanheusden.com/bsod/";
    license = "GPLv2";
    platforms = stdenv.lib.platforms.unix;
    maintainers = [ stdenv.lib.maintainers.antono ];
  };

}
