cnijfilter2: init at 5.30 (#17048)

Canon InkJet printer drivers for the MG7500, MG6700, MG6600, MG5600,
MG2900, MB2000, MB2300, iB4000, MB5000, MB5300, iP110, E450, MX490,
E480, MG7700, MG6900, MG6800, MG5700, MG3600, and G3000 series.

authored by Charles Strahan and committed by Rok Garbas 4e84c6fc 4a9b640f

+126
+122
pkgs/misc/cups/drivers/cnijfilter2/default.nix
··· 1 + { stdenv, lib, fetchzip, autoconf, automake, cups, glib, libxml2, libusb 2 + , withDebug ? false }: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "cnijfilter2-${version}"; 6 + 7 + version = "5.30"; 8 + 9 + src = fetchzip { 10 + url = "http://gdlp01.c-wss.com/gds/9/0100007129/01/cnijfilter2-source-5.30-1.tar.gz"; 11 + sha256 = "0gnl9arwmkblljsczspcgggx85a19vcmhmbjfyv1bq236yqixv5c"; 12 + }; 13 + 14 + buildInputs = [ 15 + cups automake autoconf glib libxml2 libusb 16 + ]; 17 + 18 + # lgmon3's --enable-libdir flag is used soley for specifying in which 19 + # directory the cnnnet.ini cache file should reside. 20 + # NixOS uses /var/cache/cups, and given the name, it seems like a reasonable 21 + # place to put the cnnet.ini file, and thus we do so. 22 + # 23 + # Note that the drivers attempt to dlopen 24 + # $out/lib/cups/filter/libcnbpcnclapicom2.so 25 + buildPhase = '' 26 + mkdir -p $out/lib 27 + cp com/libs_bin64/* $out/lib 28 + mkdir -p $out/lib/cups/filter 29 + ln -s $out/lib/libcnbpcnclapicom2.so $out/lib/cups/filter 30 + 31 + export NIX_LDFLAGS="$NIX_LDFLAGS -L$out/lib" 32 + '' + lib.optionalString withDebug '' 33 + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -D__DEBUG__ -DDEBUG_LOG" 34 + '' + '' 35 + 36 + ( 37 + cd lgmon3 38 + substituteInPlace src/Makefile.am \ 39 + --replace /usr/include/libusb-1.0 \ 40 + ${libusb.dev}/include/libusb-1.0 41 + ./autogen.sh --prefix=$out --enable-progpath=$out/bin \ 42 + --enable-libdir=/var/cache/cups 43 + make 44 + ) 45 + 46 + ( 47 + cd cmdtocanonij2 48 + ./autogen.sh --prefix=$out 49 + make 50 + ) 51 + 52 + ( 53 + cd cnijbe2 54 + substituteInPlace src/Makefile.am \ 55 + --replace "/usr/lib/cups/backend" \ 56 + "$out/lib/cups/backend" 57 + ./autogen.sh --prefix=$out --enable-progpath=$out/bin 58 + make 59 + ) 60 + 61 + ( 62 + cd rastertocanonij 63 + ./autogen.sh --prefix=$out --enable-progpath=$out/bin 64 + make 65 + ) 66 + 67 + ( 68 + cd tocanonij 69 + ./autogen.sh --prefix=$out --enable-progpath=$out/bin 70 + make 71 + ) 72 + 73 + ( 74 + cd tocnpwg 75 + ./autogen.sh --prefix=$out --enable-progpath=$out/bin 76 + make 77 + ) 78 + ''; 79 + 80 + installPhase = '' 81 + ( 82 + cd lgmon3 83 + make install 84 + ) 85 + 86 + ( 87 + cd cmdtocanonij2 88 + make install 89 + ) 90 + 91 + ( 92 + cd cnijbe2 93 + make install 94 + ) 95 + 96 + ( 97 + cd rastertocanonij 98 + make install 99 + ) 100 + 101 + ( 102 + cd tocanonij 103 + make install 104 + ) 105 + 106 + ( 107 + cd tocnpwg 108 + make install 109 + ) 110 + 111 + mkdir -p $out/share/cups/model 112 + cp ppd/*.ppd $out/share/cups/model 113 + ''; 114 + 115 + meta = with lib; { 116 + description = "Canon InkJet printer drivers for the MG7500, MG6700, MG6600, MG5600, MG2900, MB2000, MB2300, iB4000, MB5000, MB5300, iP110, E450, MX490, E480, MG7700, MG6900, MG6800, MG5700, MG3600, and G3000 series."; 117 + homepage = "http://support-th.canon-asia.com/contents/TH/EN/0100712901.html"; 118 + license = licenses.unfree; 119 + platforms = platforms.linux; 120 + maintainers = with maintainers; [ cstrahan ]; 121 + }; 122 + }
+4
pkgs/top-level/all-packages.nix
··· 16854 16854 16855 16855 cups-bjnp = callPackage ../misc/cups/drivers/cups-bjnp { }; 16856 16856 16857 + cnijfilter2 = callPackage ../misc/cups/drivers/cnijfilter2 { 16858 + libusb = libusb1; 16859 + }; 16860 + 16857 16861 darcnes = callPackage ../misc/emulators/darcnes { }; 16858 16862 16859 16863 darling-dmg = callPackage ../tools/filesystems/darling-dmg { };