nixos: udev: Generate hwdb with build-native udevadm.

wip/yesman
Shea Levy 6 years ago
parent a929301281
commit c0e814a434
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
  1. 2
      nixos/modules/services/hardware/udev.nix

@ -146,7 +146,7 @@ let
echo "Generating hwdb database..."
# hwdb --update doesn't return error code even on errors!
res="$(${udev}/bin/udevadm hwdb --update --root=$(pwd) 2>&1)"
res="$(${pkgs.buildPackages.udev}/bin/udevadm hwdb --update --root=$(pwd) 2>&1)"
echo "$res"
[ -z "$(echo "$res" | egrep '^Error')" ]
mv etc/udev/hwdb.bin $out

Loading…
Cancel
Save