mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #273286 from nh2/sane-backends-package-option
Add hardware.sane.backends-package option.
This commit is contained in:
commit
38034a860a
@ -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…
Reference in New Issue
Block a user