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