Merge pull request #20749 from gnidorah/master3
genymotion: 2.7.2 -> 2.8.0 and add menu item
This commit is contained in:
commit
ef138dc260
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv, requireFile, makeWrapper, which, zlib, mesa_noglu, glib, xorg, libxkbcommon
|
{ stdenv, requireFile, makeWrapper, which, zlib, mesa_noglu, glib, xorg, libxkbcommon
|
||||||
|
, xdg_utils
|
||||||
# For glewinfo
|
# For glewinfo
|
||||||
, libXmu, libXi, libXext }:
|
, libXmu, libXi, libXext }:
|
||||||
|
|
||||||
|
@ -10,24 +11,31 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "genymotion-${version}";
|
name = "genymotion-${version}";
|
||||||
version = "2.7.2";
|
version = "2.8.0";
|
||||||
src = requireFile {
|
src = requireFile {
|
||||||
url = https://www.genymotion.com/account/login/;
|
url = https://www.genymotion.com/download/;
|
||||||
name = "genymotion-${version}-linux_x64.bin";
|
name = "genymotion-${version}-linux_x64.bin";
|
||||||
sha256 = "0j1dzry6wf6cw3yr318z81rmj79r6w5l6vpilm7m9h786jrgywa1";
|
sha256 = "0lvfdlpmmsyq2i9gs4mf6a8fxkfimdr4rhyihqnfhjij3fzxz4lk";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper which ];
|
buildInputs = [ makeWrapper which xdg_utils ];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
|
mkdir -p phony-home $out/share/applications
|
||||||
|
export HOME=$TMP/phony-home
|
||||||
|
|
||||||
mkdir ${name}
|
mkdir ${name}
|
||||||
echo "y" | sh $src -d ${name}
|
echo "y" | sh $src -d ${name}
|
||||||
sourceRoot=${name}
|
sourceRoot=${name}
|
||||||
|
|
||||||
|
substitute phony-home/.local/share/applications/genymobile-genymotion.desktop \
|
||||||
|
$out/share/applications/genymobile-genymotion.desktop --replace "$TMP/${name}" "$out/libexec"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/libexec
|
mkdir -p $out/bin $out/libexec
|
||||||
mv genymotion $out/libexec/
|
mv genymotion $out/libexec/
|
||||||
|
ln -s $out/libexec/genymotion/{genymotion,player} $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
fixupPhase = ''
|
fixupPhase = ''
|
||||||
|
@ -38,7 +46,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patchExecutable() {
|
patchExecutable() {
|
||||||
patchInterpreter "$1"
|
patchInterpreter "$1"
|
||||||
makeWrapper "$out/libexec/genymotion/$1" "$out/bin/$1" \
|
wrapProgram "$out/libexec/genymotion/$1" \
|
||||||
--set "LD_LIBRARY_PATH" "${libPath}"
|
--set "LD_LIBRARY_PATH" "${libPath}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +75,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
homepage = https://www.genymotion.com/;
|
homepage = https://www.genymotion.com/;
|
||||||
license = stdenv.lib.licenses.unfree;
|
license = stdenv.lib.licenses.unfree;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = ["x86_64-linux"];
|
||||||
maintainers = [ stdenv.lib.maintainers.puffnfresh ];
|
maintainers = [ stdenv.lib.maintainers.puffnfresh ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue