mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 00:04:14 +00:00
canon-cups-ufr2: fix color printing issues
This commit resolves https://github.com/NixOS/nixpkgs/issues/310013 by adding the required `libjpeg` and `libgcrypt` libraries. It sets `dontPatchELF = true` to prevent `patchelf --shrink-rpath` from removing these libraries from the `RPATH`. This is necessary because the driver binaries use `dlopen` to load the libraries at runtime instead of specifying them in `DT_NEEDED`, which causes `dlopen` to be unable to find them when `patchelf --shrink-rpath` is called.
This commit is contained in:
parent
c6668dffc8
commit
3ce3d5b240
@ -8,6 +8,8 @@
|
|||||||
, makeWrapper
|
, makeWrapper
|
||||||
, cups
|
, cups
|
||||||
, jbigkit
|
, jbigkit
|
||||||
|
, libjpeg
|
||||||
|
, libgcrypt
|
||||||
, glib
|
, glib
|
||||||
, gtk3
|
, gtk3
|
||||||
, gdk-pixbuf
|
, gdk-pixbuf
|
||||||
@ -41,13 +43,16 @@ let
|
|||||||
hash = "sha256-JQAe/avYG+9TAsH26UGai6u8/upRXwZrGBc/hd4jZe8=";
|
hash = "sha256-JQAe/avYG+9TAsH26UGai6u8/upRXwZrGBc/hd4jZe8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cups zlib jbigkit glib gtk3 libxml2 gdk-pixbuf pango cairo atk ];
|
buildInputs = [ cups zlib jbigkit libjpeg libgcrypt glib gtk3 libxml2 gdk-pixbuf pango cairo atk ];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "canon-cups-ufr2";
|
pname = "canon-cups-ufr2";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = src_canon;
|
src = src_canon;
|
||||||
|
|
||||||
|
# we can't let patchelf remove unnecessary RPATHs because the driver uses dlopen to load libjpeg and libgcrypt
|
||||||
|
dontPatchELF = true;
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
(
|
(
|
||||||
cd $sourceRoot
|
cd $sourceRoot
|
||||||
|
Loading…
Reference in New Issue
Block a user