about summary refs log tree commit diff
path: root/pkgs/dwm/default.nix
blob: 57ef1dc3a53d96c56ad10649be38a1134178d97c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchgit, libX11, libXinerama, libXft, xlibs, patches ? [] }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "dwm";
  version = "1.0";

  src = fetchgit {
    url = "https://github.com/LukeSmithXYZ/dwm";
    rev = "28d87d439359096e2f03f2e8582a481269de06be";
    sha256 = "1fi0q68zqcmnx4spvjaqlv0k43ij96bz3545qdlc077qhzw2lxxh";
  };

  buildInputs = [ libX11 libXinerama libXft xlibs.libXext.dev ];

  prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';

  inherit patches;

  buildPhase = ''make LDFLAGS="-L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft -lX11-xcb -lxcb -lxcb-res -lXext"'';

  meta = {
    homepage = "https://github.com/LukeSmithXYZ/dwm";
    description = "Luke's build of dwm";
    license = stdenv.lib.licenses.mit;
    platforms = with stdenv.lib.platforms; all;
  };
}