nixpkgs/pkgs/applications/window-managers/dwm/default.nix

31 lines
728 B
Nix
Raw Normal View History

2015-11-11 16:09:45 +00:00
{stdenv, fetchurl, libX11, libXinerama, libXft, patches ? []}:
let
2019-02-07 10:40:16 +00:00
name = "dwm-6.2";
in
stdenv.mkDerivation {
inherit name;
2019-02-03 15:30:10 +00:00
src = fetchurl {
url = "https://dl.suckless.org/dwm/${name}.tar.gz";
2019-02-07 10:40:16 +00:00
sha256 = "03hirnj8saxnsfqiszwl2ds7p0avg20izv9vdqyambks00p2x44p";
};
2019-02-03 15:30:10 +00:00
2015-11-11 16:09:45 +00:00
buildInputs = [ libX11 libXinerama libXft ];
2019-02-03 15:30:10 +00:00
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
# Allow users set their own list of patches
inherit patches;
buildPhase = " make ";
2019-02-03 15:30:10 +00:00
meta = {
homepage = "https://suckless.org/";
description = "Dynamic window manager for X";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; all;
};
}