{ stdenv, fetchgit, libX11, libXinerama, libXft }: with stdenv.lib; stdenv.mkDerivation rec { name = "dwm"; src = fetchgit { url = "https://github.com/LukeSmithXYZ/dwm"; rev = "484720bbba3e2b175b71dba283c3a84b13e71eea"; sha256 = "1w19zy3c9nckrh9jwj30ijv7gl0miyiw4m287n5bxmm98zly264p"; }; buildInputs = [ libX11 libXinerama libXft ]; prePatch = ''sed -i "s@/usr/local@$out@" config.mk''; patches = [ ./dwm-systray.diff ./dwm-center.diff ./dwm-apps.diff ]; buildPhase = " make "; meta = { homepage = "https://github.com/LukeSmithXYZ/dwm"; description = "Luke's build of dwm"; license = stdenv.lib.licenses.mit; platforms = with stdenv.lib.platforms; all; }; }