about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-28 09:47:18 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-28 09:47:18 +0200
commitee54c309daab7ffac0d987fed3626570c26c678a (patch)
tree4f90f1ed62dc5474b8634d51af2e75e0d316c322
parent2b76c3213a10a1658fb17e7fe05cfe3c64a9a560 (diff)
downloadpnpkgs-ee54c309daab7ffac0d987fed3626570c26c678a.tar.gz
pnpkgs-ee54c309daab7ffac0d987fed3626570c26c678a.zip
Add libXext to dwm
-rw-r--r--pkgs/dwm/default.nix7
-rw-r--r--pkgs/dwm/pndwm.nix2
2 files changed, 5 insertions, 4 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";
diff --git a/pkgs/dwm/pndwm.nix b/pkgs/dwm/pndwm.nix
index a4aa6f2..7917c09 100644
--- a/pkgs/dwm/pndwm.nix
+++ b/pkgs/dwm/pndwm.nix
@@ -6,7 +6,7 @@ let
       ./dwm-center.diff
       ./dwm-apps.diff
       ./dwm-autostart.diff
-      # ./dwm-rounded.diff
+      ./dwm-rounded.diff
     ];
   };
 in