From 564fb910650c72a9e11aab2e9068aafebcd67564 Mon Sep 17 00:00:00 2001 From: Sandro Date: Mon, 12 Sep 2022 11:47:47 +0200 Subject: [PATCH] =?UTF-8?q?libusb-compat-0=5F1:=20remove=20patchelf=20from?= =?UTF-8?q?=20nativeBuildInputs=20as=20it=20is=20includ=E2=80=A6=20(#19020?= =?UTF-8?q?1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/libraries/libusb-compat/0.1.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/libusb-compat/0.1.nix b/pkgs/development/libraries/libusb-compat/0.1.nix index f977d72e7242..b9aa26c67a08 100644 --- a/pkgs/development/libraries/libusb-compat/0.1.nix +++ b/pkgs/development/libraries/libusb-compat/0.1.nix @@ -2,7 +2,6 @@ , lib , fetchFromGitHub , autoreconfHook -, patchelf , pkg-config , libusb1 }: @@ -14,10 +13,6 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; # get rid of propagating systemd closure outputBin = "dev"; - nativeBuildInputs = [ autoreconfHook patchelf pkg-config ]; - - buildInputs = [ libusb1 ]; - src = fetchFromGitHub { owner = "libusb"; repo = "libusb-compat-0.1"; @@ -27,6 +22,10 @@ stdenv.mkDerivation rec { patches = lib.optional stdenv.hostPlatform.isMusl ./fix-headers.patch; + nativeBuildInputs = [ autoreconfHook pkg-config ]; + + buildInputs = [ libusb1 ]; + # without this, libusb-compat is unable to find libusb1 postFixup = '' find $out/lib -name \*.so\* -type f -exec \