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:
parent
73951bc0c8
commit
b6fce7201e
@ -75,7 +75,7 @@ if [ -z "$buildPhase" ]; then
|
|||||||
buildPhase=sconsBuildPhase
|
buildPhase=sconsBuildPhase
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$installPhase" ]; then
|
if [ -z "$dontUseSconsInstall" -a -z "$installPhase" ]; then
|
||||||
installPhase=sconsInstallPhase
|
installPhase=sconsInstallPhase
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -11,12 +11,10 @@ in stdenv.mkDerivation {
|
|||||||
sha256 = "0jx2wqmc7602dxyj19n3h8x0cpy929h7c0h39vcc5rf0q74fh3id";
|
sha256 = "0jx2wqmc7602dxyj19n3h8x0cpy929h7c0h39vcc5rf0q74fh3id";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
makeFlags = "PREFIX=$(out)";
|
||||||
substituteInPlace Makefile --replace /usr/local "$out"
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ scons libX11 libusb1 boost glib dbus-glib];
|
buildInputs = [ scons libX11 libusb1 boost glib dbus-glib ];
|
||||||
|
dontUseSconsInstall = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://pingus.seul.org/~grumbel/xboxdrv/;
|
homepage = https://pingus.seul.org/~grumbel/xboxdrv/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user