From a18e65f6a8ee1e1c90720632e69e004bc63f9565 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 4 Jan 2020 04:20:00 -0500 Subject: heimdall: fix build on darwin --- pkgs/tools/misc/heimdall/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/tools') diff --git a/pkgs/tools/misc/heimdall/default.nix b/pkgs/tools/misc/heimdall/default.nix index a8100e455f0b..26396fee507e 100644 --- a/pkgs/tools/misc/heimdall/default.nix +++ b/pkgs/tools/misc/heimdall/default.nix @@ -21,11 +21,14 @@ mkDerivation { cmakeFlags = [ "-DDISABLE_FRONTEND=${if enableGUI then "OFF" else "ON"}" + "-DLIBUSB_LIBRARY=${libusb1}" ]; preConfigure = '' # Give ownership of the Galaxy S USB device to the logged in user. substituteInPlace heimdall/60-heimdall.rules --replace 'MODE="0666"' 'TAG+="uaccess"' + '' + stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace libpit/CMakeLists.txt --replace "-std=gnu++11" "" ''; installPhase = '' -- cgit 1.4.1