Skip to content

Commit

Permalink
airspy: fix installation of udev rules for USB access
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskowa authored and bjornfor committed Dec 16, 2017
1 parent 12c5fe3 commit 352399e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/applications/misc/airspy/default.nix
Expand Up @@ -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;
Expand Down

0 comments on commit 352399e

Please sign in to comment.