nixpkgs/pkgs/applications/window-managers/dwm/default.nix
Lluís Batlle i Rossell 5aacc33406 dwm: fix SDL games with fullscreen
It worked quite bad when the game resolution was different than the
current.
2013-04-04 23:32:53 +02:00

31 lines
725 B
Nix

{stdenv, fetchurl, libX11, libXinerama, patches ? []}:
let
name = "dwm-6.0";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "http://dl.suckless.org/dwm/${name}.tar.gz";
sha256 = "0mpbivy9j80l1jqq4bd4g4z8s5c54fxrjj44avmfwncjwqylifdj";
};
buildInputs = [ libX11 libXinerama ];
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
# Allow users set their own list of patches
patches = [ ./confnotify-6.0.patch ] ++ patches;
buildPhase = " make ";
meta = {
homepage = "www.suckless.org";
description = "Dynamic window manager for X";
license = "MIT";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; all;
};
}