Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f59139549210
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d1bfbb992db2
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Dec 26, 2020

  1. maintainers: add ewok

    Artur Taranchiev committed Dec 26, 2020
    Copy the full SHA
    7acfdc4 View commit details

Commits on Jan 19, 2021

  1. carps-cups: init at unstable-2018-03-05

    Artur Taranchiev committed Jan 19, 2021
    Copy the full SHA
    795ecae View commit details
  2. Merge pull request #107313 from ewok/carps-cups

    carps-cups: init at unstable-2018-03-05
    SuperSandro2000 authored Jan 19, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d1bfbb9 View commit details
Showing with 46 additions and 0 deletions.
  1. +44 −0 pkgs/misc/cups/drivers/carps-cups/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
44 changes: 44 additions & 0 deletions pkgs/misc/cups/drivers/carps-cups/default.nix
Original file line number Diff line number Diff line change
@@ -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
];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -28270,6 +28270,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 { };