{ stdenv, fetchurl, xorg, pkgconfig, ncurses }:
stdenv.mkDerivation rec {

  name = "xrestop-${version}";
  version = "0.4";

  src = fetchurl {
    url = mirror://gentoo/distfiles/xrestop-0.4.tar.gz;
    sha256 = "0mz27jpij8am1s32i63mdm58znfijcpfhdqq1npbmvgclyagrhk7";
  };

  buildInputs = [ pkgconfig xorg.libX11 xorg.libXres xorg.libXext ncurses ];
}
