11 version = "0.1.4.2-GxB";
17 src = fetchFromGitHub {
20 rev = "8ecc3cde1ae9a20dcb015994bb0fea0dbefa2b83";
21 hash = "sha256-FslofWZNmF7G9+lmw1JehRBYZIAXcg6Dmv9xJ/c4Evo=";
29 buildInputs = [ cups ];
31 # Fix for 'ppdc: Unable to find include file "<font.defs>"', which blocks '*.ppd' generation.
32 # Issue occurs in hermetic sandbox; this workaround is the current solution.
33 # Source: https://github.com/NixOS/nixpkgs/blob/9997402000a82eda4327fde36291234118c7515e/pkgs/misc/drivers/hplip/default.nix#L160
34 CUPS_DATADIR = "${cups}/share/cups";
40 automake --add-missing
41 ./configure --prefix=$out/usr
54 mkdir -p $out/lib/cups/filter
55 install -D -m 755 ./src/rastertocapt $out/lib/cups/filter/rastertocapt
57 mkdir -p $out/share/cups/model/canon
58 install -D -m 644 ./ppd/CanonLBP-2900-3000.ppd $out/share/cups/model/canon/CanonLBP-2900-3000.ppd
59 install -D -m 644 ./ppd/CanonLBP-3010-3018-3050.ppd $out/share/cups/model/canon/CanonLBP-3010-3018-3050.ppd
65 description = "Community-driven driver for Canon CAPT-based printers";
66 homepage = "https://github.com/mounaiban/captdriver";
67 license = licenses.gpl3;
68 maintainers = with maintainers; [ cryptoluks ];
69 platforms = platforms.linux;