airspy: fix installation of udev rules for USB access
This commit is contained in:
parent
12c5fe3e2d
commit
352399e559
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue