Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / misc / drivers / dell-530cdn / default.nix
blob9cabd8fa3396ba7e0e6133d1193cbbe4afb18149
1 { runCommand, fetchurl, rpm, cpio }: let
2   version = "1.3-1";
4   src = fetchurl {
5     url = "http://downloads.dell.com/printer/Dell-5130cdn-Color-Laser-${version}.noarch.rpm";
6     sha256 = "0pj32sj6jcdnpa5v75af0hnvx4z0ky0m1k2522cfdx4cb1r2lna9";
7   };
8 in runCommand "Dell-5130cdn-Color-Laser-1.3-1" {} ''
9   mkdir -p usr/share/cups/model
10   ${rpm}/bin/rpm2cpio ${src} | ${cpio}/bin/cpio -i
11   mkdir -p $out/share/ppd
12   mv usr/share/cups/model/Dell $out/share/ppd