carps-cups: init at unstable-2018-03-05
This commit is contained in:
parent
7acfdc40e1
commit
795ecae086
2 changed files with 46 additions and 0 deletions
44
pkgs/misc/cups/drivers/carps-cups/default.nix
Normal file
44
pkgs/misc/cups/drivers/carps-cups/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cups
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "carps-cups";
|
||||
version = "unstable-2018-03-05";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ondrej-zary";
|
||||
repo = "carps-cups";
|
||||
rev = "18d80d1d6f473dd9132e4b6d8b5c592c74982f17";
|
||||
sha256 = "0mjj9hs5lqxi0qamgb4sxfz4fvf7ggi66bxd37bkz3fl0g9xff70";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
export CUPS_DATADIR="${cups}/share/cups"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
CUPSDIR="$out/lib/cups"
|
||||
CUPSDATADIR="$out/share/cups"
|
||||
|
||||
mkdir -p "$CUPSDIR/filter" "$CUPSDATADIR/drv" "$CUPSDATADIR/usb"
|
||||
|
||||
install -s rastertocarps $CUPSDIR/filter
|
||||
install -m 644 carps.drv $CUPSDATADIR/drv/
|
||||
install -m 644 carps.usb-quirks $CUPSDATADIR/usb/
|
||||
'';
|
||||
|
||||
buildInputs = [ cups ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CUPS Linux drivers for Canon printers";
|
||||
homepage = "https://www.canon.com/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [
|
||||
ewok
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -27609,6 +27609,8 @@ in
|
|||
|
||||
gutenprintBin = callPackage ../misc/drivers/gutenprint/bin.nix { };
|
||||
|
||||
carps-cups = callPackage ../misc/cups/drivers/carps-cups { };
|
||||
|
||||
cups-bjnp = callPackage ../misc/cups/drivers/cups-bjnp { };
|
||||
|
||||
cups-brother-hl1110 = pkgsi686Linux.callPackage ../misc/cups/drivers/hl1110 { };
|
||||
|
|
Loading…
Reference in a new issue