mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
51 lines
2.1 KiB
Nix
51 lines
2.1 KiB
Nix
{ lib, stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "cups-toshiba-estudio";
|
|
version = "7.89";
|
|
|
|
src = fetchurl {
|
|
url = "http://business.toshiba.com/downloads/KB/f1Ulds/15178/TOSHIBA_ColorMFP_CUPS.tar";
|
|
sha256 = "0qz4r7q55i0adf4fv3aqnfqgi2pz3jb1jixkqm9x6nk4vanyjf4r";
|
|
};
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
patchPhase = ''
|
|
patchShebangs lib/
|
|
gunzip share/cups/model/Toshiba/TOSHIBA_ColorMFP_CUPS.gz
|
|
sed -i "s+/usr+$out+" share/cups/model/Toshiba/TOSHIBA_ColorMFP_CUPS
|
|
gzip share/cups/model/Toshiba/TOSHIBA_ColorMFP_CUPS
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib/cups/filter
|
|
mkdir -p $out/share/cups/model/Toshiba
|
|
cp {.,$out}/lib/cups/filter/est6550_Authentication
|
|
chmod 755 $out/lib/cups/filter/est6550_Authentication
|
|
cp {.,$out}/share/cups/model/Toshiba/TOSHIBA_ColorMFP_CUPS.gz
|
|
chmod 755 $out/share/cups/model/Toshiba/TOSHIBA_ColorMFP_CUPS.gz
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Printer only driver for the Toshiba e-STUDIO class of printers";
|
|
longDescription = ''
|
|
This driver supports the following printers: TOSHIBA e-STUDIO2000AC,
|
|
TOSHIBA e-STUDIO2005AC, TOSHIBA e-STUDIO2040C, TOSHIBA e-STUDIO2050C,
|
|
TOSHIBA e-STUDIO2055C, TOSHIBA e-STUDIO2500AC, TOSHIBA e-STUDIO2505AC,
|
|
TOSHIBA e-STUDIO2540C, TOSHIBA e-STUDIO2550C, TOSHIBA e-STUDIO2555C,
|
|
TOSHIBA e-STUDIO287CS, TOSHIBA e-STUDIO3005AC, TOSHIBA e-STUDIO3040C,
|
|
TOSHIBA e-STUDIO3055C, TOSHIBA e-STUDIO347CS, TOSHIBA e-STUDIO3505AC,
|
|
TOSHIBA e-STUDIO3540C, TOSHIBA e-STUDIO3555C, TOSHIBA e-STUDIO407CS,
|
|
TOSHIBA e-STUDIO4505AC, TOSHIBA e-STUDIO4540C, TOSHIBA e-STUDIO4555C,
|
|
TOSHIBA e-STUDIO5005AC, TOSHIBA e-STUDIO5055C, TOSHIBA e-STUDIO5506AC,
|
|
TOSHIBA e-STUDIO5540C, TOSHIBA e-STUDIO5560C, TOSHIBA e-STUDIO6506AC,
|
|
TOSHIBA e-STUDIO6540C, TOSHIBA e-STUDIO6550C, TOSHIBA e-STUDIO6560C,
|
|
TOSHIBA e-STUDIO6570C and TOSHIBA e-STUDIO7506AC.
|
|
'';
|
|
homepage = "https://business.toshiba.com/support/downloads/index.html";
|
|
license = licenses.unfree;
|
|
maintainers = [ maintainers.jpotier ];
|
|
};
|
|
}
|