mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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
|
||||
fi
|
||||
|
||||
if [ -z "$installPhase" ]; then
|
||||
if [ -z "$dontUseSconsInstall" -a -z "$installPhase" ]; then
|
||||
installPhase=sconsInstallPhase
|
||||
fi
|
||||
|
||||
|
@ -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/;
|
||||
|
Loading…
Reference in New Issue
Block a user