mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
pcsclite: make dbusSupport optional
This commit is contained in:
parent
dec7ebf0cd
commit
a87a075306
@ -10,6 +10,7 @@
|
||||
, dbus
|
||||
, polkit
|
||||
, systemdLibs
|
||||
, dbusSupport ? stdenv.isLinux
|
||||
, systemdSupport ? stdenv.isLinux
|
||||
, IOKit
|
||||
, testers
|
||||
@ -18,6 +19,9 @@
|
||||
, polkitSupport ? false
|
||||
}:
|
||||
|
||||
assert polkitSupport -> dbusSupport;
|
||||
assert systemdSupport -> dbusSupport;
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
inherit pname;
|
||||
version = "2.1.0";
|
||||
@ -73,7 +77,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
buildInputs = [ python3 ]
|
||||
++ lib.optionals systemdSupport [ systemdLibs ]
|
||||
++ lib.optionals stdenv.isDarwin [ IOKit ]
|
||||
++ lib.optionals polkitSupport [ dbus polkit ];
|
||||
++ lib.optionals dbusSupport [ dbus ]
|
||||
++ lib.optionals polkitSupport [ polkit ];
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
|
Loading…
Reference in New Issue
Block a user