Merge pull request #86165 from jtojnar/libusb-compat-rename

This commit is contained in:
Jan Tojnar
2020-04-29 08:26:08 +02:00
committed by GitHub
61 changed files with 129 additions and 128 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cups, libusb, libxml2, perl }:
{ stdenv, fetchurl, cups, libusb-compat-0_1, libxml2, perl }:
let
@@ -17,7 +17,7 @@ in stdenv.mkDerivation rec {
buildInputs = [
cups
libusb
libusb-compat-0_1
libxml2
perl
];
@@ -91,7 +91,7 @@ in stdenv.mkDerivation rec {
done
patchelf --set-rpath "$out/lib:${stdenv.lib.getLib cups}/lib" "$out/lib/libscmssc.so"
patchelf --set-rpath "$out/lib:${libxml2.out}/lib:${libusb.out}/lib" "$out/lib/sane/libsane-smfp.so.1.0.1"
patchelf --set-rpath "$out/lib:${libxml2.out}/lib:${libusb-compat-0_1.out}/lib" "$out/lib/sane/libsane-smfp.so.1.0.1"
ln -s ${stdenv.cc.cc.lib}/lib/libstdc++.so.6 $out/lib/
'';

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, cups, libusb, libxml2 }:
{ stdenv, fetchurl, cups, libusb-compat-0_1, libxml2 }:
let
@@ -17,7 +17,7 @@ in stdenv.mkDerivation rec {
buildInputs = [
cups
libusb
libusb-compat-0_1
libxml2
];
@@ -74,7 +74,7 @@ in stdenv.mkDerivation rec {
done
patchelf --set-rpath "$out/lib:${stdenv.lib.getLib cups}/lib" "$out/lib/libscmssc.so"
patchelf --set-rpath "$out/lib:${libxml2.out}/lib:${libusb.out}/lib" "$out/lib/sane/libsane-smfp.so.1.0.1"
patchelf --set-rpath "$out/lib:${libxml2.out}/lib:${libusb-compat-0_1.out}/lib" "$out/lib/sane/libsane-smfp.so.1.0.1"
ln -s ${stdenv.cc.cc.lib}/lib/libstdc++.so.6 $out/lib/
'';

View File

@@ -11,14 +11,14 @@
# }
# (This advice was tested on the 1st November 2016.)
{ stdenv, fetchurl, cups, libusb }:
{ stdenv, fetchurl, cups, libusb-compat-0_1 }:
# Do not bump lightly! Visit <http://www.bchemnet.com/suldr/supported.html>
# to see what will break when upgrading. Consider a new versioned attribute.
let
installationPath = if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64" else "i386";
appendPath = if stdenv.hostPlatform.system == "x86_64-linux" then "64" else "";
libPath = stdenv.lib.makeLibraryPath [ cups libusb ] + ":$out/lib:${stdenv.cc.cc.lib}/lib${appendPath}";
libPath = stdenv.lib.makeLibraryPath [ cups libusb-compat-0_1 ] + ":$out/lib:${stdenv.cc.cc.lib}/lib${appendPath}";
in stdenv.mkDerivation rec {
pname = "samsung-UnifiedLinuxDriver";
version = "4.01.17";

View File

@@ -3,7 +3,7 @@ pkgconfig, libtool,
gtk2,
libxml2,
libxslt,
libusb,
libusb-compat-0_1,
sane-backends,
rpm, cpio,
getopt,
@@ -263,7 +263,7 @@ stdenv.mkDerivation rec {
gtk2
libxml2
libtool
libusb
libusb-compat-0_1
sane-backends
makeWrapper
];

View File

@@ -2,7 +2,7 @@
{ stdenv, lib, fetchurl, makeWrapper, pkgconfig
, ijs, zlib
, gimp2Support ? false, gimp
, cupsSupport ? true, cups, libusb, perl
, cupsSupport ? true, cups, libusb-compat-0_1, perl
}:
stdenv.mkDerivation rec {
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
buildInputs =
[ ijs zlib ]
++ lib.optionals gimp2Support [ gimp.gtk gimp ]
++ lib.optionals cupsSupport [ cups libusb perl ];
++ lib.optionals cupsSupport [ cups libusb-compat-0_1 perl ];
configureFlags = lib.optionals cupsSupport [
"--disable-static-genppd" # should be harmless on NixOS