Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 51 lines 1.8 kB view raw
1{ lib, stdenv, fetchurl, cups }: 2 3let version = "1.7.20"; 4in stdenv.mkDerivation { 5 pname = "epson-escpr"; 6 inherit version; 7 8 src = fetchurl { 9 # To find new versions, visit 10 # http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX and search for 11 # some printer like for instance "WF-7110" to get to the most recent 12 # version. 13 # NOTE: Don't forget to update the webarchive link too! 14 urls = [ 15 "https://download3.ebz.epson.net/dsc/f/03/00/13/76/45/5ac2ea8f9cf94a48abd64afd0f967f98c4fc24aa/epson-inkjet-printer-escpr-${version}-1lsb3.2.tar.gz" 16 17 "https://web.archive.org/web/https://download3.ebz.epson.net/dsc/f/03/00/13/76/45/5ac2ea8f9cf94a48abd64afd0f967f98c4fc24aa/epson-inkjet-printer-escpr-${version}-1lsb3.2.tar.gz" 18 ]; 19 sha256 = "sha256:09rscpm557dgaflylr93wcwmyn6fnvr8nc77abwnq97r6hxwrkhk"; 20 }; 21 22 patches = [ ./cups-filter-ppd-dirs.patch ]; 23 24 buildInputs = [ cups ]; 25 26 meta = with lib; { 27 homepage = "http://download.ebz.epson.net/dsc/search/01/search/"; 28 description = "ESC/P-R Driver (generic driver)"; 29 longDescription = '' 30 Epson Inkjet Printer Driver (ESC/P-R) for Linux and the 31 corresponding PPD files. The list of supported printers 32 can be found at http://www.openprinting.org/driver/epson-escpr/ . 33 34 To use the driver adjust your configuration.nix file: 35 services.printing = { 36 enable = true; 37 drivers = [ pkgs.epson-escpr ]; 38 }; 39 40 To setup a wireless printer, enable Avahi which provides 41 printer's hostname to CUPS and nss-mdns to make this 42 hostname resolvable: 43 services.avahi = { 44 enable = true; 45 nssmdns = true; 46 };''; 47 license = licenses.gpl3Plus; 48 maintainers = with maintainers; [ artuuge ]; 49 platforms = platforms.linux; 50 }; 51}