libfido2: evaluate systemd only on Linux

This commit is contained in:
Marek Mahut 2020-02-21 13:53:27 +01:00
parent 448c671a62
commit 1ea0a243d2

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ libcbor libressl udev ];
buildInputs = [ libcbor libressl ] ++ stdenv.lib.optionals stdenv.isLinux [ udev ];
cmakeFlags = [ "-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d" ];