airspy: fix installation of udev rules for USB access

This commit is contained in:
Markus Kowalewski
2017-12-16 12:52:07 +01:00
committed by Bjørn Forsman
parent 12c5fe3e2d
commit 352399e559
+5 -1
View File
@@ -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;