From fe1f3b70bcbaf83af7be16620350a280c740ff8e Mon Sep 17 00:00:00 2001 From: yawnt Date: Mon, 30 May 2016 11:42:10 +0200 Subject: [PATCH] postscript-lexmark: add package --- .../drivers/postscript-lexmark/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 8 ++-- 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 pkgs/misc/drivers/postscript-lexmark/default.nix diff --git a/pkgs/misc/drivers/postscript-lexmark/default.nix b/pkgs/misc/drivers/postscript-lexmark/default.nix new file mode 100644 index 000000000000..5b8f88218ff1 --- /dev/null +++ b/pkgs/misc/drivers/postscript-lexmark/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 29f1b0c529ae..cba89bac5aa1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2989,6 +2989,8 @@ in popfile = callPackage ../tools/text/popfile { }; + postscript-lexmark = callPackage ../misc/drivers/postscript-lexmark { }; + povray = callPackage ../tools/graphics/povray { automake = automake113x; # fails with 14 }; @@ -4488,7 +4490,7 @@ in inherit (self.haskellPackages) ghc; cabal-install = haskell.lib.disableSharedExecutables haskellPackages.cabal-install; - + stack = haskell.lib.overrideCabal haskellPackages.stack (drv: { enableSharedExecutables = false; isLibrary = false; @@ -10824,7 +10826,7 @@ in batman_adv = callPackage ../os-specific/linux/batman-adv {}; bcc = callPackage ../os-specific/linux/bcc { }; - + bbswitch = callPackage ../os-specific/linux/bbswitch {}; ati_drivers_x11 = callPackage ../os-specific/linux/ati-drivers { }; @@ -15947,7 +15949,7 @@ in openspecfun = callPackage ../development/libraries/science/math/openspecfun {}; - magma = callPackage ../development/libraries/science/math/magma { }; + magma = callPackage ../development/libraries/science/math/magma { }; mathematica = callPackage ../applications/science/math/mathematica { }; mathematica9 = callPackage ../applications/science/math/mathematica/9.nix { };