unclutter-xfixes: fix cross-compilation

This commit is contained in:
Brian McKenna 2022-06-06 12:27:23 +10:00
parent e4cb4bdb05
commit a9bb8e4c98

View file

@ -16,6 +16,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config asciidoc libxslt docbook_xsl ];
buildInputs = [ xlibsWrapper libev libXi libXfixes ];
prePatch = ''
substituteInPlace Makefile --replace 'PKG_CONFIG =' 'PKG_CONFIG ?='
'';
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installFlags = [ "PREFIX=$(out)" ];