mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
treewide: Make explicit that 'dev' output of libusb1 is used
This commit is contained in:
parent
b5c6069def
commit
9d5ba6ba68
5 changed files with 5 additions and 5 deletions
|
@ -71,7 +71,7 @@ let
|
|||
# Help digiKam find libusb, otherwise gphoto2 support is disabled
|
||||
cmakeFlags = [
|
||||
"-DLIBUSB_LIBRARIES=${libusb1.out}/lib"
|
||||
"-DLIBUSB_INCLUDE_DIR=${libusb1}/include/libusb-1.0"
|
||||
"-DLIBUSB_INCLUDE_DIR=${libusb1.dev}/include/libusb-1.0"
|
||||
"-DENABLE_BALOOSUPPORT=ON"
|
||||
"-DENABLE_KDEPIMLIBSSUPPORT=ON"
|
||||
"-DENABLE_LCMS2=ON" ]
|
||||
|
|
|
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
cmakeFlags = "-DLIBUSB_INCLUDE_DIRS=${libusb1}/include/libusb-1.0";
|
||||
cmakeFlags = "-DLIBUSB_INCLUDE_DIRS=${libusb1.dev}/include/libusb-1.0";
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
buildInputs = [ python pythonPackages.pyramid_mako orc libusb1 boost ];
|
||||
|
|
|
@ -83,7 +83,7 @@ stdenv.mkDerivation {
|
|||
find . -type f -exec sed -i \
|
||||
-e s,/etc/hp,$out/etc/hp, \
|
||||
-e s,/etc/sane.d,$out/etc/sane.d, \
|
||||
-e s,/usr/include/libusb-1.0,${libusb1}/include/libusb-1.0, \
|
||||
-e s,/usr/include/libusb-1.0,${libusb1.dev}/include/libusb-1.0, \
|
||||
-e s,/usr/share/hal/fdi/preprobe/10osvendor,$out/share/hal/fdi/preprobe/10osvendor, \
|
||||
-e s,/usr/lib/systemd/system,$out/lib/systemd/system, \
|
||||
-e s,/var/lib/hp,$out/var/lib/hp, \
|
||||
|
|
|
@ -84,7 +84,7 @@ stdenv.mkDerivation {
|
|||
find . -type f -exec sed -i \
|
||||
-e s,/etc/hp,$out/etc/hp, \
|
||||
-e s,/etc/sane.d,$out/etc/sane.d, \
|
||||
-e s,/usr/include/libusb-1.0,${libusb1}/include/libusb-1.0, \
|
||||
-e s,/usr/include/libusb-1.0,${libusb1.dev}/include/libusb-1.0, \
|
||||
-e s,/usr/share/hal/fdi/preprobe/10osvendor,$out/share/hal/fdi/preprobe/10osvendor, \
|
||||
-e s,/usr/lib/systemd/system,$out/lib/systemd/system, \
|
||||
-e s,/var/lib/hp,$out/var/lib/hp, \
|
||||
|
|
|
@ -26863,7 +26863,7 @@ in modules // {
|
|||
|
||||
# Fix the USB backend library lookup
|
||||
postPatch = ''
|
||||
libusb=${pkgs.libusb1}/include/libusb-1.0
|
||||
libusb=${pkgs.libusb1.dev}/include/libusb-1.0
|
||||
test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
|
||||
sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue