From 352399e559acdeaf6c9775c43079ce36228081c5 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Fri, 15 Dec 2017 00:39:15 -0800 Subject: [PATCH] airspy: fix installation of udev rules for USB access --- pkgs/applications/misc/airspy/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/airspy/default.nix b/pkgs/applications/misc/airspy/default.nix index d00cd366537a..211e8fd05411 100644 --- a/pkgs/applications/misc/airspy/default.nix +++ b/pkgs/applications/misc/airspy/default.nix @@ -15,10 +15,14 @@ in sha256 = "04kx2p461sqd4q354n1a99zcabg9h29dwcnyhakykq8bpg3mgf1x"; }; + postPatch = '' + substituteInPlace airspy-tools/CMakeLists.txt --replace "/etc/udev/rules.d" "$out/etc/udev/rules.d" + ''; + nativeBuildInputs = [ cmake pkgconfig ]; buildInputs = [ libusb ]; - cmakeFlags = [ "-DINSTALL_UDEV_RULES=OFF" ]; + cmakeFlags = [ "-DINSTALL_UDEV_RULES=ON" ]; meta = with stdenv.lib; { homepage = http://github.com/airspy/airspyone_host;