nixpkgs/pkgs/misc/drivers/postscript-lexmark/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

38 lines
1 KiB
Nix

{ stdenv, lib, fetchurl, rpmextract }:
let
version = "20160218";
in
stdenv.mkDerivation {
name = "postscript-lexmark-${version}";
src = fetchurl {
url = "http://www.openprinting.org/download/printdriver/components/lsb3.2/main/RPMS/noarch/openprinting-ppds-postscript-lexmark-${version}-1lsb3.2.noarch.rpm";
sha256 = "0wbhvypdr96a5ddg6kj41dn9sbl49n7pfi2vs762ij82hm2gvwcm";
};
nativeBuildInputs = [ rpmextract ];
phases = [ "unpackPhase" "installPhase"];
sourceRoot = ".";
unpackPhase = ''
rpmextract $src
for ppd in opt/OpenPrinting-Lexmark/ppds/Lexmark/*; do
gzip -d $ppd
done
'';
installPhase = ''
mkdir -p $out/share/cups/model/postscript-lexmark
cp opt/OpenPrinting-Lexmark/ppds/Lexmark/*.ppd $out/share/cups/model/postscript-lexmark/
cp -r opt/OpenPrinting-Lexmark/doc $out/doc
'';
meta = with stdenv.lib; {
homepage = http://www.openprinting.org/driver/Postscript-Lexmark/;
description = "Lexmark Postscript Drivers";
platforms = platforms.linux;
};
}