Commit b7c362f8 authored by Leon Schuermann's avatar Leon Schuermann
Browse files

usbkvm: remove udev rules hack, use udevrulesdir meson option

parent 125dd5bd
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  pkg-config,
  python3,
  stdenv,
  udev,
  wrapGAppsHook3,
}:

@@ -51,6 +52,7 @@ stdenv.mkDerivation {
    ninja
    makeWrapper
    wrapGAppsHook3
    udev
  ];

  buildInputs = [
@@ -71,6 +73,11 @@ stdenv.mkDerivation {
      --replace-fail "@MSLIB_H_PRECOMPILED@" "${ms-tools-lib}/mslib.h"
  '';

  # Install udev rules in this package's out path:
  mesonFlags = [
    "-Dudevrulesdir=lib/udev/rules.d"
  ];

  postFixup =
    let
      GST_PLUGIN_PATH = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
@@ -83,11 +90,6 @@ stdenv.mkDerivation {
        --prefix GST_PLUGIN_PATH : "${GST_PLUGIN_PATH}"
    '';

  postInstall = ''
    mkdir -p $out/lib/udev/rules.d/
    cp ../70-usbkvm.rules $out/lib/udev/rules.d/
  '';

  meta = {
    homepage = "https://github.com/carrotIndustries/usbkvm";
    description = "An open-source USB KVM (Keyboard, Video and Mouse) adapter";