mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Add hardware.sane.backends-package option.
Allows overriding `sane-backends` drivers without rebuilding many packages.
This commit is contained in:
parent
2c7f3c0fb7
commit
d65c4445a9
1 changed files with 8 additions and 1 deletions
|
@ -4,7 +4,7 @@ with lib;
|
|||
|
||||
let
|
||||
|
||||
pkg = pkgs.sane-backends.override {
|
||||
pkg = config.hardware.sane.backends-package.override {
|
||||
scanSnapDriversUnfree = config.hardware.sane.drivers.scanSnap.enable;
|
||||
scanSnapDriversPackage = config.hardware.sane.drivers.scanSnap.package;
|
||||
};
|
||||
|
@ -57,6 +57,13 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
hardware.sane.backends-package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.sane-backends;
|
||||
defaultText = literalExpression "pkgs.sane-backends";
|
||||
description = lib.mdDoc "Backends driver package to use.";
|
||||
};
|
||||
|
||||
hardware.sane.snapshot = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue