diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-04 04:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-04 04:20:00 -0500 |
commit | a18e65f6a8ee1e1c90720632e69e004bc63f9565 (patch) | |
tree | 6c47aafd7055610c83a924f7fed5feedb3fce5d3 /pkgs/tools/misc | |
parent | 63834d63da872a524af4ee43dd25600ffe69618a (diff) | |
download | nixpkgs-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.nix | 3 |
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 = '' |