3
0
Fork 0
forked from mirrors/nixpkgs

heimdall: fix build on darwin

This commit is contained in:
Mario Rodas 2020-01-04 04:20:00 -05:00
parent 63834d63da
commit a18e65f6a8
No known key found for this signature in database
GPG key ID: 4C4BEFD7B18DC5E8

View file

@ -21,11 +21,14 @@ mkDerivation {
cmakeFlags = [ cmakeFlags = [
"-DDISABLE_FRONTEND=${if enableGUI then "OFF" else "ON"}" "-DDISABLE_FRONTEND=${if enableGUI then "OFF" else "ON"}"
"-DLIBUSB_LIBRARY=${libusb1}"
]; ];
preConfigure = '' preConfigure = ''
# Give ownership of the Galaxy S USB device to the logged in user. # Give ownership of the Galaxy S USB device to the logged in user.
substituteInPlace heimdall/60-heimdall.rules --replace 'MODE="0666"' 'TAG+="uaccess"' substituteInPlace heimdall/60-heimdall.rules --replace 'MODE="0666"' 'TAG+="uaccess"'
'' + stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace libpit/CMakeLists.txt --replace "-std=gnu++11" ""
''; '';
installPhase = '' installPhase = ''