Merge pull request #86165 from jtojnar/libusb-compat-rename
This commit is contained in:
@@ -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/
|
||||
'';
|
||||
|
||||
@@ -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/
|
||||
'';
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
];
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user