diff options
author | Markus Kowalewski <markus.kowalewski.uu@gmail.com> | 2017-12-15 00:39:15 -0800 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-12-16 12:52:07 +0100 |
commit | 352399e559acdeaf6c9775c43079ce36228081c5 (patch) | |
tree | 8067df53d104e4960a232defe750b98dd1798bda /pkgs/applications/misc/airspy | |
parent | 12c5fe3e2dec6178cfef286ccc0a3078a0b63456 (diff) |
airspy: fix installation of udev rules for USB access
Diffstat (limited to 'pkgs/applications/misc/airspy')
-rw-r--r-- | pkgs/applications/misc/airspy/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/misc/airspy/default.nix b/pkgs/applications/misc/airspy/default.nix index d00cd366537a4..211e8fd054112 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; |