From 579b812b0e0395d10aa55507e2f6c2e0763fb565 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Thu, 6 Apr 2023 13:43:22 -0700 Subject: https://github.com/NixOS/nixpkgs/pull/224893#pullrequestreview-1375521876 --- pkgs/build-support/rust/default-crate-overrides.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pkgs/build-support') diff --git a/pkgs/build-support/rust/default-crate-overrides.nix b/pkgs/build-support/rust/default-crate-overrides.nix index a0e3c8fabea06..ce8217b403e60 100644 --- a/pkgs/build-support/rust/default-crate-overrides.nix +++ b/pkgs/build-support/rust/default-crate-overrides.nix @@ -88,10 +88,11 @@ in }; evdev-sys = attrs: { - nativeBuildInputs = - [ pkg-config - python3 autoconf automake libtool # used only if HOST!=TARGET - ]; + nativeBuildInputs = [ + pkg-config + ] ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [ + python3 autoconf automake libtool + ]; buildInputs = [ libevdev ]; # This prevents libevdev's build.rs from trying to `git fetch` when HOST!=TARGET -- cgit 1.4.1