about summary refs log tree commit diff
path: root/pkgs/dwm/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/dwm/default.nix')
-rw-r--r--pkgs/dwm/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/dwm/default.nix b/pkgs/dwm/default.nix
index 0f8eed4..57ef1dc 100644
--- a/pkgs/dwm/default.nix
+++ b/pkgs/dwm/default.nix
@@ -1,9 +1,10 @@
-{ stdenv, fetchgit, libX11, libXinerama, libXft, libXext, patches ? [] }:
+{ 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";
@@ -11,13 +12,13 @@ stdenv.mkDerivation rec {
     sha256 = "1fi0q68zqcmnx4spvjaqlv0k43ij96bz3545qdlc077qhzw2lxxh";
   };
 
-  buildInputs = [ libX11 libXinerama libXft libXext ];
+  buildInputs = [ libX11 libXinerama libXft xlibs.libXext.dev ];
 
   prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
 
   inherit patches;
 
-  buildPhase = " make ";
+  buildPhase = ''make LDFLAGS="-L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft -lX11-xcb -lxcb -lxcb-res -lXext"'';
 
   meta = {
     homepage = "https://github.com/LukeSmithXYZ/dwm";