3
0
Fork 0
forked from mirrors/nixpkgs

airspy: fix installation of udev rules for USB access

This commit is contained in:
Markus Kowalewski 2017-12-15 00:39:15 -08:00 committed by Bjørn Forsman
parent 12c5fe3e2d
commit 352399e559

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;