heimdall: cosmetic
This commit is contained in:
parent
372d367b37
commit
a211eef81a
@ -1,5 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, zlib, libusb1, cmake, qt5
|
{ stdenv, fetchFromGitHub, zlib, libusb1, cmake, qt5, enableGUI ? false }:
|
||||||
, enableGUI ? false }:
|
|
||||||
|
|
||||||
let version = "1.4.1-34-g7ebee1e"; in
|
let version = "1.4.1-34-g7ebee1e"; in
|
||||||
|
|
||||||
@ -18,30 +17,28 @@ stdenv.mkDerivation {
|
|||||||
sed -i '/heimdall-frontend/d' CMakeLists.txt
|
sed -i '/heimdall-frontend/d' CMakeLists.txt
|
||||||
'';
|
'';
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
cmakeFlags = ["-DQt5Widgets_DIR=${qt5.qtbase}/lib/cmake/Qt5Widgets"
|
cmakeFlags = [
|
||||||
|
"-DQt5Widgets_DIR=${qt5.qtbase}/lib/cmake/Qt5Widgets"
|
||||||
"-DQt5Gui_DIR=${qt5.qtbase}/lib/cmake/Qt5Gui"
|
"-DQt5Gui_DIR=${qt5.qtbase}/lib/cmake/Qt5Gui"
|
||||||
"-DQt5Core_DIR=${qt5.qtbase}/lib/cmake/Qt5Core"
|
"-DQt5Core_DIR=${qt5.qtbase}/lib/cmake/Qt5Core"
|
||||||
"-DBUILD_TYPE=Release"];
|
"-DBUILD_TYPE=Release"
|
||||||
|
];
|
||||||
|
|
||||||
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"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase =
|
installPhase = ''
|
||||||
''
|
|
||||||
mkdir -p $out/bin $out/share/doc/heimdall $out/lib/udev/rules.d
|
mkdir -p $out/bin $out/share/doc/heimdall $out/lib/udev/rules.d
|
||||||
cp bin/heimdall $out/bin
|
cp "bin/"* $out/bin/
|
||||||
cp ../Linux/README $out/share/doc/heimdall
|
cp ../Linux/README $out/share/doc/heimdall
|
||||||
cp ../heimdall/60-heimdall.rules $out/lib/udev/rules.d
|
cp ../heimdall/60-heimdall.rules $out/lib/udev/rules.d
|
||||||
'' + stdenv.lib.optionalString enableGUI ''
|
|
||||||
cp bin/heimdall-frontend $out/bin
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.glassechidna.com.au/products/heimdall/;
|
homepage = "http://www.glassechidna.com.au/products/heimdall/";
|
||||||
description = "A cross-platform open-source tool suite used to flash firmware onto Samsung Galaxy S devices";
|
description = "A cross-platform tool suite to flash firmware onto Samsung Galaxy S devices";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = stdenv.lib.licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user