samsung-unified-linux-driver 4.01.17: fix library path

On x86-64, the executables were looking for
libraries in `${lib.getLib stdenv.cc.cc}/lib64`,
but that path apparently changed with
https://github.com/NixOS/nixpkgs/commit/5e2e98f3b71f1b7e0168e5c071bc9dff029287cb ,
resulting in a runtime error:

> /nix/store/0z8gd4fmjknwswx0pp5kzqnrhj1k9q8x-samsung-UnifiedLinuxDriver-4.01.17/lib/cups/filter/rastertospl: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Affected programs are
`$out/lib/cups/filter/{ps,raster}tospl{,c}`.

The commit at hand fixes the library lookup path.
This commit is contained in:
Yarny0
2025-03-10 15:48:39 +01:00
parent 0b59ddc82d
commit eb8cee29f9
+1 -1
View File
@@ -30,7 +30,7 @@ let
cups
libusb-compat-0_1
]
+ ":$out/lib:${lib.getLib stdenv.cc.cc}/lib${appendPath}";
+ ":$out/lib:${lib.getLib stdenv.cc.cc}/lib";
in
stdenv.mkDerivation (finalAttrs: {
pname = "samsung-unified-linux-driver";