xboxdrv: add dontUseSconsInstall flag

xboxdrv doesn’t use scons for installing, but instead using a
makefile! Everything else is in scons so we have to keep that. I’ve
added a dontUseSconsInstall flag to the scons setup-hook to skip the
automatic overwrite of default “make install” call.
This commit is contained in:
Matthew Bauer 2018-11-14 13:57:41 -06:00
parent 73951bc0c8
commit b6fce7201e
2 changed files with 4 additions and 6 deletions

View File

@ -75,7 +75,7 @@ if [ -z "$buildPhase" ]; then
buildPhase=sconsBuildPhase
fi
if [ -z "$installPhase" ]; then
if [ -z "$dontUseSconsInstall" -a -z "$installPhase" ]; then
installPhase=sconsInstallPhase
fi

View File

@ -11,12 +11,10 @@ in stdenv.mkDerivation {
sha256 = "0jx2wqmc7602dxyj19n3h8x0cpy929h7c0h39vcc5rf0q74fh3id";
};
patchPhase = ''
substituteInPlace Makefile --replace /usr/local "$out"
'';
makeFlags = "PREFIX=$(out)";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ scons libX11 libusb1 boost glib dbus-glib];
buildInputs = [ scons libX11 libusb1 boost glib dbus-glib ];
dontUseSconsInstall = true;
meta = with stdenv.lib; {
homepage = https://pingus.seul.org/~grumbel/xboxdrv/;