Merge pull request #273286 from nh2/sane-backends-package-option

Add hardware.sane.backends-package option.
This commit is contained in:
Guillaume Girol 2024-01-01 21:43:35 +01:00 committed by GitHub
commit 38034a860a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ with lib;
let let
pkg = pkgs.sane-backends.override { pkg = config.hardware.sane.backends-package.override {
scanSnapDriversUnfree = config.hardware.sane.drivers.scanSnap.enable; scanSnapDriversUnfree = config.hardware.sane.drivers.scanSnap.enable;
scanSnapDriversPackage = config.hardware.sane.drivers.scanSnap.package; 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 { hardware.sane.snapshot = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;