mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
Merge pull request #133514 from Stunkymonkey/canon-cups-ufr2-phases
canon-cups-ufr2: deprecate phases
This commit is contained in:
commit
7666bbc849
@ -1,16 +1,27 @@
|
||||
{ lib, stdenv, fetchurl, unzip, autoreconfHook, libtool, makeWrapper, cups
|
||||
, ghostscript, pkgsi686Linux, zlib }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, unzip
|
||||
, autoconf
|
||||
, automake
|
||||
, libtool
|
||||
, makeWrapper
|
||||
, cups
|
||||
, ghostscript
|
||||
, pkgsi686Linux
|
||||
, zlib
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
i686_NIX_GCC = pkgsi686Linux.callPackage ({gcc}: gcc) {};
|
||||
i686_libxml2 = pkgsi686Linux.callPackage ({libxml2}: libxml2) {};
|
||||
i686_NIX_GCC = pkgsi686Linux.callPackage ({ gcc }: gcc) { };
|
||||
i686_libxml2 = pkgsi686Linux.callPackage ({ libxml2 }: libxml2) { };
|
||||
|
||||
commonVer = "4.10";
|
||||
version = "3.70";
|
||||
dl = "8/0100007658/08";
|
||||
|
||||
versionNoDots = builtins.replaceStrings ["."] [""] version;
|
||||
versionNoDots = builtins.replaceStrings [ "." ] [ "" ] version;
|
||||
src_canon = fetchurl {
|
||||
url = "http://gdlp01.c-wss.com/gds/${dl}/linux-UFRII-drv-v${versionNoDots}-uken-05.tar.gz";
|
||||
sha256 = "0424lvyrsvsb94qga4p4ldis7f714c5yw5ydv3f84mdl2a7papg0";
|
||||
@ -24,18 +35,18 @@ stdenv.mkDerivation {
|
||||
inherit version;
|
||||
src = src_canon;
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
postUnpack = ''
|
||||
(cd $sourceRoot; tar -xzf Sources/cndrvcups-common-${commonVer}-1.tar.gz)
|
||||
(cd $sourceRoot; tar -xzf Sources/cndrvcups-lb-${version}-1.tar.gz)
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper unzip autoreconfHook libtool ];
|
||||
nativeBuildInputs = [ makeWrapper unzip autoconf automake libtool ];
|
||||
|
||||
buildInputs = [ cups zlib ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
##
|
||||
## cndrvcups-common buildPhase
|
||||
##
|
||||
@ -213,7 +224,9 @@ stdenv.mkDerivation {
|
||||
makeWrapper "${ghostscript}/bin/gs" "$out/bin/gs" \
|
||||
--prefix LD_LIBRARY_PATH ":" "$out/lib" \
|
||||
--prefix PATH ":" "$out/bin"
|
||||
'';
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "CUPS Linux drivers for Canon printers";
|
||||
|
Loading…
Reference in New Issue
Block a user