Merge pull request #87200 from B4dM4n/libusb-no-systemd

libusb1: fix enableSystemd=false build
This commit is contained in:
Frederik Rietdijk 2020-09-04 19:59:35 +02:00 committed by GitHub
commit 60258be0f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
sha256 = "0mxbpg01kgbk5nh6524b0m4xk7ywkyzmc3yhi5asqcsd3rbhjj98";
};
outputs = [ "out" "dev" ]; # get rid of propagating systemd closure
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig autoreconfHook ];
propagatedBuildInputs =
@ -31,8 +31,6 @@ stdenv.mkDerivation rec {
dontDisableStatic = withStatic;
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
configureFlags = stdenv.lib.optional (!enableSystemd) "--disable-udev";
preFixup = stdenv.lib.optionalString enableSystemd ''