mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
Merge pull request #15826 from yawnt/postscript-lexmark
postscript-lexmark: add package
This commit is contained in:
commit
5faefd4c04
37
pkgs/misc/drivers/postscript-lexmark/default.nix
Normal file
37
pkgs/misc/drivers/postscript-lexmark/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
@ -2987,6 +2987,8 @@ in
|
||||
|
||||
popfile = callPackage ../tools/text/popfile { };
|
||||
|
||||
postscript-lexmark = callPackage ../misc/drivers/postscript-lexmark { };
|
||||
|
||||
povray = callPackage ../tools/graphics/povray {
|
||||
automake = automake113x; # fails with 14
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user