Skip to content

Commit

Permalink
Merge pull request #224893 from amjoseph-nixpkgs/pr/crate-overrides/e…
Browse files Browse the repository at this point in the history
…vdev-sys

default-crate-overrides.nix: prevent `git fetch`
  • Loading branch information
figsoda authored Apr 9, 2023
2 parents 40b5e10 + 579b812 commit ce0ee58
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pkgs/build-support/rust/default-crate-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
, alsa-lib
, graphene
, protobuf
, autoconf
, automake
, libtool
, ...
}:

Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit ce0ee58

Please sign in to comment.