Merge pull request #224893 from amjoseph-nixpkgs/pr/crate-overrides/evdev-sys
default-crate-overrides.nix: prevent `git fetch`
This commit is contained in:
commit
ce0ee58e84
@ -36,6 +36,9 @@
|
||||
, alsa-lib
|
||||
, graphene
|
||||
, protobuf
|
||||
, autoconf
|
||||
, automake
|
||||
, libtool
|
||||
, ...
|
||||
}:
|
||||
|
||||
@ -85,8 +88,17 @@ in
|
||||
};
|
||||
|
||||
evdev-sys = attrs: {
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
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
|
||||
prePatch = ''
|
||||
touch libevdev/.git
|
||||
'';
|
||||
};
|
||||
|
||||
expat-sys = attrs: {
|
||||
|
Loading…
Reference in New Issue
Block a user