hackrf: fix build

It was using libusb-compat instead of libusb1, and the former no longer propagates the latter.

Also move cmake to nativeBuildInputs.
This commit is contained in:
Jan Tojnar 2020-04-02 08:14:13 +02:00
parent f613cea0f7
commit ac46ffbcfc
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libusb, fftwSinglePrec }:
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libusb1, fftwSinglePrec }:
stdenv.mkDerivation rec {
pname = "hackrf";
@ -11,9 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "0idh983xh6gndk9kdgx5nzz76x3mxb42b02c5xvdqahadsfx3b9w";
};
nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [
cmake
pkgconfig
];
buildInputs = [
cmake libusb fftwSinglePrec
libusb1
fftwSinglePrec
];
cmakeFlags = [ "-DUDEV_RULES_GROUP=plugdev" "-DUDEV_RULES_PATH=lib/udev/rules.d" ];