Merge pull request #85965 from flokli/libusb1-cleanups
make libusb1 dependencies explicit
This commit is contained in:
commit
3b1e189f40
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, systemd, libusb
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, systemd, libusb1
|
||||||
, darwin }:
|
, darwin }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ ]
|
buildInputs = [ ]
|
||||||
++ stdenv.lib.optionals stdenv.isLinux [ libusb systemd ];
|
++ stdenv.lib.optionals stdenv.isLinux [ libusb1 systemd ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -1,35 +1,36 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, pkgconfig
|
, acl
|
||||||
|
, cyrus_sasl
|
||||||
|
, docbook_xsl
|
||||||
|
, epoxy
|
||||||
|
, gettext
|
||||||
|
, gobject-introspection
|
||||||
|
, gst_all_1
|
||||||
|
, gtk-doc
|
||||||
|
, gtk3
|
||||||
|
, json-glib
|
||||||
|
, libcacard
|
||||||
|
, libdrm
|
||||||
|
, libjpeg_turbo
|
||||||
|
, libopus
|
||||||
|
, libsoup
|
||||||
|
, libusb1
|
||||||
|
, lz4
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
|
, openssl
|
||||||
|
, perl
|
||||||
|
, phodav
|
||||||
|
, pixman
|
||||||
|
, pkgconfig
|
||||||
|
, polkit
|
||||||
, python3
|
, python3
|
||||||
, spice-protocol
|
, spice-protocol
|
||||||
, gettext
|
|
||||||
, openssl
|
|
||||||
, pixman
|
|
||||||
, gobject-introspection
|
|
||||||
, libjpeg_turbo
|
|
||||||
, zlib
|
|
||||||
, cyrus_sasl
|
|
||||||
, usbredir
|
, usbredir
|
||||||
, libsoup
|
|
||||||
, polkit
|
|
||||||
, acl
|
|
||||||
, usbutils
|
, usbutils
|
||||||
, vala
|
, vala
|
||||||
, gtk3
|
, zlib
|
||||||
, epoxy
|
|
||||||
, libdrm
|
|
||||||
, gst_all_1
|
|
||||||
, phodav
|
|
||||||
, libopus
|
|
||||||
, gtk-doc
|
|
||||||
, json-glib
|
|
||||||
, lz4
|
|
||||||
, libcacard
|
|
||||||
, perl
|
|
||||||
, docbook_xsl
|
|
||||||
, withPolkit ? true
|
, withPolkit ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -99,9 +100,10 @@ stdenv.mkDerivation rec {
|
|||||||
libcacard
|
libcacard
|
||||||
libdrm
|
libdrm
|
||||||
libjpeg_turbo
|
libjpeg_turbo
|
||||||
|
libopus
|
||||||
|
libusb1
|
||||||
lz4
|
lz4
|
||||||
openssl
|
openssl
|
||||||
libopus
|
|
||||||
phodav
|
phodav
|
||||||
pixman
|
pixman
|
||||||
spice-protocol
|
spice-protocol
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libusb }:
|
{ stdenv, fetchurl, pkgconfig, libusb1 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "usbredir";
|
pname = "usbredir";
|
||||||
@ -12,14 +12,13 @@ stdenv.mkDerivation rec {
|
|||||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ libusb ];
|
propagatedBuildInputs = [ libusb1 ];
|
||||||
propagatedBuildInputs = [ libusb ];
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "USB traffic redirection protocol";
|
description = "USB traffic redirection protocol";
|
||||||
homepage = "http://spice-space.org/page/UsbRedir";
|
homepage = "https://www.spice-space.org/usbredir.html";
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
|
|
||||||
maintainers = [ maintainers.offline ];
|
maintainers = [ maintainers.offline ];
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, libusb1 }:
|
{ stdenv, fetchFromGitHub, cmake, libusb1 }:
|
||||||
|
|
||||||
# IMPORTANT: You need permissions to access the stlink usb devices.
|
let
|
||||||
|
# The Darwin build of stlink explicitly refers to static libusb.
|
||||||
|
libusb1' = if stdenv.isDarwin then libusb1.override { withStatic = true; } else libusb1;
|
||||||
|
|
||||||
|
# IMPORTANT: You need permissions to access the stlink usb devices.
|
||||||
# Add services.udev.pkgs = [ pkgs.stlink ] to your configuration.nix
|
# Add services.udev.pkgs = [ pkgs.stlink ] to your configuration.nix
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "stlink";
|
pname = "stlink";
|
||||||
version = "1.6.0";
|
version = "1.6.0";
|
||||||
|
|
||||||
@ -14,7 +18,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x";
|
sha256 = "1mlkrxjxg538335g59hjb0zc739dx4mhbspb26z5gz3lf7d4xv6x";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake libusb1 ];
|
buildInputs = [ libusb1' ];
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i 's@/etc/udev/rules.d@$ENV{out}/etc/udev/rules.d@' CMakeLists.txt
|
sed -i 's@/etc/udev/rules.d@$ENV{out}/etc/udev/rules.d@' CMakeLists.txt
|
||||||
sed -i 's@/etc/modprobe.d@$ENV{out}/etc/modprobe.d@' CMakeLists.txt
|
sed -i 's@/etc/modprobe.d@$ENV{out}/etc/modprobe.d@' CMakeLists.txt
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
, acl
|
, acl
|
||||||
, gmp
|
, gmp
|
||||||
, darwin
|
, darwin
|
||||||
, libusb ? null
|
, libusb1 ? null
|
||||||
, gnutls ? null
|
, gnutls ? null
|
||||||
, avahi ? null
|
, avahi ? null
|
||||||
, libpaper ? null
|
, libpaper ? null
|
||||||
@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig removeReferencesTo ];
|
nativeBuildInputs = [ pkgconfig removeReferencesTo ];
|
||||||
|
|
||||||
buildInputs = [ zlib libjpeg libpng libtiff libusb gnutls libpaper ]
|
buildInputs = [ zlib libjpeg libpng libtiff libusb1 gnutls libpaper ]
|
||||||
++ optionals stdenv.isLinux [ avahi pam dbus ]
|
++ optionals stdenv.isLinux [ avahi pam dbus ]
|
||||||
++ optional enableSystemd systemd
|
++ optional enableSystemd systemd
|
||||||
# Separate from above only to not modify order, to avoid mass rebuilds; merge this with the above at next big change.
|
# Separate from above only to not modify order, to avoid mass rebuilds; merge this with the above at next big change.
|
||||||
@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-dbus"
|
"--enable-dbus"
|
||||||
"--enable-pam"
|
"--enable-pam"
|
||||||
"--with-dbusdir=${placeholder "out"}/share/dbus-1"
|
"--with-dbusdir=${placeholder "out"}/share/dbus-1"
|
||||||
] ++ optional (libusb != null) "--enable-libusb"
|
] ++ optional (libusb1 != null) "--enable-libusb"
|
||||||
++ optional (gnutls != null) "--enable-ssl"
|
++ optional (gnutls != null) "--enable-ssl"
|
||||||
++ optional (avahi != null) "--enable-avahi"
|
++ optional (avahi != null) "--enable-avahi"
|
||||||
++ optional (libpaper != null) "--enable-libpaper"
|
++ optional (libpaper != null) "--enable-libpaper"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchzip, autoconf, automake, cups, glib, libxml2, libusb, libtool
|
{ stdenv, lib, fetchzip, autoconf, automake, cups, glib, libxml2, libusb1, libtool
|
||||||
, withDebug ? false }:
|
, withDebug ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cups automake autoconf glib libxml2 libusb libtool
|
cups automake autoconf glib libxml2 libusb1 libtool
|
||||||
];
|
];
|
||||||
|
|
||||||
# lgmon3's --enable-libdir flag is used soley for specifying in which
|
# lgmon3's --enable-libdir flag is used soley for specifying in which
|
||||||
@ -37,7 +37,7 @@ stdenv.mkDerivation {
|
|||||||
cd lgmon3
|
cd lgmon3
|
||||||
substituteInPlace src/Makefile.am \
|
substituteInPlace src/Makefile.am \
|
||||||
--replace /usr/include/libusb-1.0 \
|
--replace /usr/include/libusb-1.0 \
|
||||||
${libusb.dev}/include/libusb-1.0
|
${libusb1.dev}/include/libusb-1.0
|
||||||
./autogen.sh --prefix=$out --enable-progpath=$out/bin \
|
./autogen.sh --prefix=$out --enable-progpath=$out/bin \
|
||||||
--datadir=$out/share \
|
--datadir=$out/share \
|
||||||
--enable-libdir=/var/cache/cups
|
--enable-libdir=/var/cache/cups
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{ stdenv, lib, fetchzip,
|
{ stdenv, lib, fetchzip,
|
||||||
autoconf, automake, libtool,
|
autoconf, automake, libtool,
|
||||||
cups, popt, libtiff, libpng,
|
cups, popt, libtiff, libpng,
|
||||||
ghostscript, glib, libusb, libxml2 }:
|
ghostscript, glib, libusb1, libxml2 }:
|
||||||
|
|
||||||
/* this derivation is basically just a transcription of the rpm .spec
|
/* this derivation is basically just a transcription of the rpm .spec
|
||||||
file included in the tarball */
|
file included in the tarball */
|
||||||
|
|
||||||
let arch =
|
let arch =
|
||||||
if stdenv.hostPlatform.system == "x86_64-linux" then "64"
|
if stdenv.hostPlatform.system == "x86_64-linux" then "64"
|
||||||
else if stdenv.hostPlatform.system == "i686-linux" then "32"
|
else if stdenv.hostPlatform.system == "i686-linux" then "32"
|
||||||
else throw "Unsupported system ${stdenv.hostPlatform.system}";
|
else throw "Unsupported system ${stdenv.hostPlatform.system}";
|
||||||
@ -32,7 +32,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ autoconf libtool automake
|
buildInputs = [ autoconf libtool automake
|
||||||
cups popt libtiff libpng
|
cups popt libtiff libpng
|
||||||
ghostscript glib libusb libxml2 ];
|
ghostscript glib libusb1 libxml2 ];
|
||||||
|
|
||||||
# patches from https://github.com/tokiclover/bar-overlay/tree/master/net-print/cnijfilter
|
# patches from https://github.com/tokiclover/bar-overlay/tree/master/net-print/cnijfilter
|
||||||
patches = [
|
patches = [
|
||||||
@ -53,10 +53,10 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
cd libs
|
cd libs
|
||||||
./autogen.sh --prefix=$out
|
./autogen.sh --prefix=$out
|
||||||
|
|
||||||
cd ../bscc2sts
|
cd ../bscc2sts
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
cd ../cnijnpr
|
cd ../cnijnpr
|
||||||
./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib
|
./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib
|
||||||
@ -68,25 +68,25 @@ in stdenv.mkDerivation {
|
|||||||
./autogen.sh --prefix=$out --enable-progpath=$out/bin
|
./autogen.sh --prefix=$out --enable-progpath=$out/bin
|
||||||
|
|
||||||
cd ../pstocanonij
|
cd ../pstocanonij
|
||||||
./autogen.sh --prefix=$out --enable-progpath=$out/bin
|
./autogen.sh --prefix=$out --enable-progpath=$out/bin
|
||||||
|
|
||||||
cd ../backend
|
cd ../backend
|
||||||
./autogen.sh --prefix=$out
|
./autogen.sh --prefix=$out
|
||||||
|
|
||||||
cd ../backendnet
|
cd ../backendnet
|
||||||
./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib --enable-progpath=$out/bin
|
./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib --enable-progpath=$out/bin
|
||||||
|
|
||||||
cd ../cmdtocanonij
|
cd ../cmdtocanonij
|
||||||
./autogen.sh --prefix=$out --datadir=$out/share
|
./autogen.sh --prefix=$out --datadir=$out/share
|
||||||
|
|
||||||
cd ../cnijbe
|
cd ../cnijbe
|
||||||
./autogen.sh --prefix=$out --enable-progpath=$out/bin
|
./autogen.sh --prefix=$out --enable-progpath=$out/bin
|
||||||
|
|
||||||
cd ../lgmon2
|
cd ../lgmon2
|
||||||
substituteInPlace src/Makefile.am \
|
substituteInPlace src/Makefile.am \
|
||||||
--replace /usr/include/libusb-1.0 \
|
--replace /usr/include/libusb-1.0 \
|
||||||
${libusb.dev}/include/libusb-1.0
|
${libusb1.dev}/include/libusb-1.0
|
||||||
./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib --enable-progpath=$out/bin
|
./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib --enable-progpath=$out/bin
|
||||||
|
|
||||||
cd ..;
|
cd ..;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, libusb, pkgconfig, pmutils, udev} :
|
{ stdenv, fetchgit, libusb1, pkgconfig, pmutils, udev} :
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ libusb pmutils udev ];
|
buildInputs = [ libusb1 pmutils udev ];
|
||||||
|
|
||||||
# shell thing didn't work so i replaced it using nix
|
# shell thing didn't work so i replaced it using nix
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libusb, libyubikey, json_c }:
|
{ stdenv, fetchurl, pkgconfig, libusb1, libyubikey, json_c }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "yubikey-personalization";
|
pname = "yubikey-personalization";
|
||||||
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ libusb libyubikey json_c ];
|
buildInputs = [ libusb1 libyubikey json_c ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-backend=libusb-1.0"
|
"--with-backend=libusb-1.0"
|
||||||
|
@ -5874,9 +5874,7 @@ in
|
|||||||
|
|
||||||
briss = callPackage ../tools/graphics/briss { };
|
briss = callPackage ../tools/graphics/briss { };
|
||||||
|
|
||||||
brickd = callPackage ../servers/brickd {
|
brickd = callPackage ../servers/brickd { };
|
||||||
libusb = libusb1;
|
|
||||||
};
|
|
||||||
|
|
||||||
bully = callPackage ../tools/networking/bully {
|
bully = callPackage ../tools/networking/bully {
|
||||||
openssl = openssl_1_0_2;
|
openssl = openssl_1_0_2;
|
||||||
@ -12141,9 +12139,7 @@ in
|
|||||||
|
|
||||||
heyefi = haskellPackages.heyefi;
|
heyefi = haskellPackages.heyefi;
|
||||||
|
|
||||||
hidapi = callPackage ../development/libraries/hidapi {
|
hidapi = callPackage ../development/libraries/hidapi { };
|
||||||
libusb = libusb1;
|
|
||||||
};
|
|
||||||
|
|
||||||
highfive = callPackage ../development/libraries/highfive { };
|
highfive = callPackage ../development/libraries/highfive { };
|
||||||
|
|
||||||
@ -14618,10 +14614,7 @@ in
|
|||||||
|
|
||||||
stfl = callPackage ../development/libraries/stfl { };
|
stfl = callPackage ../development/libraries/stfl { };
|
||||||
|
|
||||||
stlink = callPackage ../development/tools/misc/stlink {
|
stlink = callPackage ../development/tools/misc/stlink { };
|
||||||
# The Darwin build of stlink explicitly refers to static libusb.
|
|
||||||
libusb1 = if stdenv.isDarwin then libusb1.override { withStatic = true; } else libusb1;
|
|
||||||
};
|
|
||||||
|
|
||||||
steghide = callPackage ../tools/security/steghide {};
|
steghide = callPackage ../tools/security/steghide {};
|
||||||
|
|
||||||
@ -14795,9 +14788,7 @@ in
|
|||||||
|
|
||||||
ustr = callPackage ../development/libraries/ustr { };
|
ustr = callPackage ../development/libraries/ustr { };
|
||||||
|
|
||||||
usbredir = callPackage ../development/libraries/usbredir {
|
usbredir = callPackage ../development/libraries/usbredir { };
|
||||||
libusb = libusb1;
|
|
||||||
};
|
|
||||||
|
|
||||||
uthash = callPackage ../development/libraries/uthash { };
|
uthash = callPackage ../development/libraries/uthash { };
|
||||||
|
|
||||||
@ -15068,9 +15059,7 @@ in
|
|||||||
|
|
||||||
yubikey-neo-manager = callPackage ../tools/misc/yubikey-neo-manager { };
|
yubikey-neo-manager = callPackage ../tools/misc/yubikey-neo-manager { };
|
||||||
|
|
||||||
yubikey-personalization = callPackage ../tools/misc/yubikey-personalization {
|
yubikey-personalization = callPackage ../tools/misc/yubikey-personalization { };
|
||||||
libusb = libusb1;
|
|
||||||
};
|
|
||||||
|
|
||||||
yubikey-personalization-gui = libsForQt5.callPackage ../tools/misc/yubikey-personalization-gui { };
|
yubikey-personalization-gui = libsForQt5.callPackage ../tools/misc/yubikey-personalization-gui { };
|
||||||
|
|
||||||
@ -25203,9 +25192,7 @@ in
|
|||||||
|
|
||||||
clinfo = callPackage ../tools/system/clinfo { };
|
clinfo = callPackage ../tools/system/clinfo { };
|
||||||
|
|
||||||
cups = callPackage ../misc/cups {
|
cups = callPackage ../misc/cups { };
|
||||||
libusb = libusb1;
|
|
||||||
};
|
|
||||||
|
|
||||||
cups-filters = callPackage ../misc/cups/filters.nix { };
|
cups-filters = callPackage ../misc/cups/filters.nix { };
|
||||||
|
|
||||||
@ -25253,13 +25240,9 @@ in
|
|||||||
# this driver ships with pre-compiled 32-bit binary libraries
|
# this driver ships with pre-compiled 32-bit binary libraries
|
||||||
cnijfilter_2_80 = pkgsi686Linux.callPackage ../misc/cups/drivers/cnijfilter_2_80 { };
|
cnijfilter_2_80 = pkgsi686Linux.callPackage ../misc/cups/drivers/cnijfilter_2_80 { };
|
||||||
|
|
||||||
cnijfilter_4_00 = callPackage ../misc/cups/drivers/cnijfilter_4_00 {
|
cnijfilter_4_00 = callPackage ../misc/cups/drivers/cnijfilter_4_00 { };
|
||||||
libusb = libusb1;
|
|
||||||
};
|
|
||||||
|
|
||||||
cnijfilter2 = callPackage ../misc/cups/drivers/cnijfilter2 {
|
cnijfilter2 = callPackage ../misc/cups/drivers/cnijfilter2 { };
|
||||||
libusb = libusb1;
|
|
||||||
};
|
|
||||||
|
|
||||||
darcnes = callPackage ../misc/emulators/darcnes { };
|
darcnes = callPackage ../misc/emulators/darcnes { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user