dwm: fix static build
This commit is contained in:
parent
499e024bff
commit
15d2f6c28e
@ -6,6 +6,7 @@
|
|||||||
libXinerama,
|
libXinerama,
|
||||||
libXft,
|
libXft,
|
||||||
writeText,
|
writeText,
|
||||||
|
pkg-config,
|
||||||
patches ? [ ],
|
patches ? [ ],
|
||||||
conf ? null,
|
conf ? null,
|
||||||
# update script dependencies
|
# update script dependencies
|
||||||
@ -21,6 +22,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-Ideev6ny+5MUGDbCZmy4H0eExp1k5/GyNS+blwuglyk=";
|
sha256 = "sha256-Ideev6ny+5MUGDbCZmy4H0eExp1k5/GyNS+blwuglyk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = lib.optional stdenv.hostPlatform.isStatic pkg-config;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libX11
|
libX11
|
||||||
libXinerama
|
libXinerama
|
||||||
@ -31,6 +34,10 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i "s@/usr/local@$out@" config.mk
|
sed -i "s@/usr/local@$out@" config.mk
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preBuild = lib.optional stdenv.hostPlatform.isStatic ''
|
||||||
|
makeFlagsArray+=(LDFLAGS="$(${stdenv.cc.targetPrefix}pkg-config --static --libs x11 xinerama xft)")
|
||||||
|
'';
|
||||||
|
|
||||||
# Allow users set their own list of patches
|
# Allow users set their own list of patches
|
||||||
inherit patches;
|
inherit patches;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user