summary refs log tree commit diff
path: root/pkgs/misc/cups
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-31 18:01:01 +0000
committerGitHub <noreply@github.com>2021-10-31 18:01:01 +0000
commit7ca1d48ff2382e5845ea1779d3eaab277ff12d7c (patch)
treebd356d3d53cd6ee8d4564210b66009ccc4df1171 /pkgs/misc/cups
parentf66386e3b12af275a4e961a317823004380deafc (diff)
parent1b209f62d924509216a0234b789c03003c73f666 (diff)
downloadnixpkgs-7ca1d48ff2382e5845ea1779d3eaab277ff12d7c.tar
nixpkgs-7ca1d48ff2382e5845ea1779d3eaab277ff12d7c.tar.gz
nixpkgs-7ca1d48ff2382e5845ea1779d3eaab277ff12d7c.tar.bz2
nixpkgs-7ca1d48ff2382e5845ea1779d3eaab277ff12d7c.tar.lz
nixpkgs-7ca1d48ff2382e5845ea1779d3eaab277ff12d7c.tar.xz
nixpkgs-7ca1d48ff2382e5845ea1779d3eaab277ff12d7c.tar.zst
nixpkgs-7ca1d48ff2382e5845ea1779d3eaab277ff12d7c.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/misc/cups')
-rw-r--r--pkgs/misc/cups/drivers/kyocera-ecosys-m2x35-40-p2x35-40dnw/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/misc/cups/drivers/kyocera-ecosys-m2x35-40-p2x35-40dnw/default.nix b/pkgs/misc/cups/drivers/kyocera-ecosys-m2x35-40-p2x35-40dnw/default.nix
new file mode 100644
index 00000000000..985a172d873
--- /dev/null
+++ b/pkgs/misc/cups/drivers/kyocera-ecosys-m2x35-40-p2x35-40dnw/default.nix
@@ -0,0 +1,33 @@
+{ stdenv
+, lib
+, fetchzip
+  # can either be "EU" or "Global"; it's unclear what the difference is
+, region ? "Global"
+  # can be either "English", "French", "German", "Italian", "Portguese" or "Spanish"
+, language ? "English"
+}:
+
+stdenv.mkDerivation rec {
+  pname = "cups-kyocera-ecosys-m2x35-40-p2x35-40dnw";
+  version = "8.1606";
+
+  src = let
+    urlVersion = builtins.replaceStrings [ "." ] [ "_" ] version;
+  in fetchzip {
+    url = "https://www.kyoceradocumentsolutions.de/content/download-center/de/drivers/all/Linux_${urlVersion}_ECOSYS_M2x35_40_P2x35_40dnw_zip.download.zip";
+    sha256 = "10crxdfj62ini70vv471445zi6q0l9fmg2jsd74sp6fr0qa0kvr7";
+  };
+
+  installPhase = ''
+    mkdir -p $out/share/cups/model/Kyocera
+    cp ${region}/${language}/*.PPD $out/share/cups/model/Kyocera/
+  '';
+
+  meta = with lib; {
+    description = "PPD files for Kyocera ECOSYS M2040dn/M2135dn/M2540dn/M2540dw/M2635dn/M2635dw/M2640idw/M2735dw/P2040dn/M2040dw/P2235dn/P2235dw";
+    homepage = "https://www.kyoceradocumentsolutions.com";
+    license = licenses.unfree;
+    maintainers = with maintainers; [ hexa ];
+    platforms = platforms.linux;
+  };
+}