summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-01-04 04:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-01-04 04:20:00 -0500
commita18e65f6a8ee1e1c90720632e69e004bc63f9565 (patch)
tree6c47aafd7055610c83a924f7fed5feedb3fce5d3 /pkgs/tools/misc
parent63834d63da872a524af4ee43dd25600ffe69618a (diff)
downloadnixpkgs-a18e65f6a8ee1e1c90720632e69e004bc63f9565.tar
nixpkgs-a18e65f6a8ee1e1c90720632e69e004bc63f9565.tar.gz
nixpkgs-a18e65f6a8ee1e1c90720632e69e004bc63f9565.tar.bz2
nixpkgs-a18e65f6a8ee1e1c90720632e69e004bc63f9565.tar.lz
nixpkgs-a18e65f6a8ee1e1c90720632e69e004bc63f9565.tar.xz
nixpkgs-a18e65f6a8ee1e1c90720632e69e004bc63f9565.tar.zst
nixpkgs-a18e65f6a8ee1e1c90720632e69e004bc63f9565.zip
heimdall: fix build on darwin
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/heimdall/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/misc/heimdall/default.nix b/pkgs/tools/misc/heimdall/default.nix
index a8100e455f0..26396fee507 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 = ''