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