Revert "hidapi: fix cross build"

Not needed when using buildPackages.autoreconfHook

This reverts commit f6514239ee.
This commit is contained in:
Frederik Rietdijk 2020-12-31 15:32:37 +01:00
parent e823016e66
commit 08668447e2

View file

@ -1,7 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb1
, darwin
, gnum4
}:
, darwin }:
stdenv.mkDerivation rec {
pname = "hidapi";
@ -14,13 +12,7 @@ stdenv.mkDerivation rec {
sha256 = "1nr4z4b10vpbh3ss525r7spz4i43zim2ba5qzfl15dgdxshxxivb";
};
nativeBuildInputs = [
autoreconfHook
pkgconfig
] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
# Could be added always, but added conditionally here to avoid large rebuild
gnum4
];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ ]
++ stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ];