mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 15:37:51 +00:00
canon-cups-ufr2: fix color printing issues (#332213)
This commit is contained in:
commit
77d3b11d0d
@ -8,6 +8,8 @@
|
||||
, makeWrapper
|
||||
, cups
|
||||
, jbigkit
|
||||
, libjpeg
|
||||
, libgcrypt
|
||||
, glib
|
||||
, gtk3
|
||||
, gdk-pixbuf
|
||||
@ -30,24 +32,27 @@ let
|
||||
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
|
||||
libs = pkgs: lib.makeLibraryPath buildInputs;
|
||||
|
||||
version = "5.90";
|
||||
dl = "8/0100007658/40";
|
||||
version = "6.00";
|
||||
dl = "0/0100009240/34";
|
||||
suffix1 = "m17n";
|
||||
suffix2 = "03";
|
||||
suffix2 = "00";
|
||||
|
||||
versionNoDots = builtins.replaceStrings [ "." ] [ "" ] version;
|
||||
src_canon = fetchurl {
|
||||
url = "http://gdlp01.c-wss.com/gds/${dl}/linux-UFRII-drv-v${versionNoDots}-${suffix1}-${suffix2}.tar.gz";
|
||||
hash = "sha256-HvuRQYqkHRCwfajSJPridDcADq7VkYwBEo4qr9W5mqA=";
|
||||
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
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "canon-cups-ufr2";
|
||||
inherit version;
|
||||
src = src_canon;
|
||||
|
||||
# we can't let patchelf remove unnecessary RPATHs because the driver uses dlopen to load libjpeg and libgcrypt
|
||||
dontPatchELF = true;
|
||||
|
||||
postUnpack = ''
|
||||
(
|
||||
cd $sourceRoot
|
||||
|
Loading…
Reference in New Issue
Block a user