fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, lib, fetchurl, rpmextract }:
2let
3 version = "20160218";
4in
5stdenv.mkDerivation {
6 name = "postscript-lexmark-${version}";
7
8 src = fetchurl {
9 url = "http://www.openprinting.org/download/printdriver/components/lsb3.2/main/RPMS/noarch/openprinting-ppds-postscript-lexmark-${version}-1lsb3.2.noarch.rpm";
10 sha256 = "0wbhvypdr96a5ddg6kj41dn9sbl49n7pfi2vs762ij82hm2gvwcm";
11 };
12
13 nativeBuildInputs = [ rpmextract ];
14
15 phases = [ "unpackPhase" "installPhase"];
16
17 sourceRoot = ".";
18
19 unpackPhase = ''
20 rpmextract $src
21 for ppd in opt/OpenPrinting-Lexmark/ppds/Lexmark/*; do
22 gzip -d $ppd
23 done
24 '';
25
26 installPhase = ''
27 mkdir -p $out/share/cups/model/postscript-lexmark
28 cp opt/OpenPrinting-Lexmark/ppds/Lexmark/*.ppd $out/share/cups/model/postscript-lexmark/
29 cp -r opt/OpenPrinting-Lexmark/doc $out/doc
30 '';
31
32 meta = with stdenv.lib; {
33 homepage = http://www.openprinting.org/driver/Postscript-Lexmark/;
34 description = "Lexmark Postscript Drivers";
35 platforms = platforms.linux;
36 };
37}