Merge pull request #224893 from amjoseph-nixpkgs/pr/crate-overrides/evdev-sys

default-crate-overrides.nix: prevent `git fetch`
This commit is contained in:
figsoda 2023-04-09 00:01:20 -04:00 committed by GitHub
commit ce0ee58e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,9 @@
, alsa-lib , alsa-lib
, graphene , graphene
, protobuf , protobuf
, autoconf
, automake
, libtool
, ... , ...
}: }:
@ -85,8 +88,17 @@ in
}; };
evdev-sys = attrs: { evdev-sys = attrs: {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [
pkg-config
] ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [
python3 autoconf automake libtool
];
buildInputs = [ libevdev ]; buildInputs = [ libevdev ];
# This prevents libevdev's build.rs from trying to `git fetch` when HOST!=TARGET
prePatch = ''
touch libevdev/.git
'';
}; };
expat-sys = attrs: { expat-sys = attrs: {