Unverified Commit ce0ee58e authored by figsoda's avatar figsoda Committed by GitHub
Browse files

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

default-crate-overrides.nix: prevent `git fetch`
parents 40b5e102 579b812b
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -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: {