git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #20749 from gnidorah/master3

genymotion: 2.7.2 -> 2.8.0 and add menu item

commitef138dc260df49350054918f048baf472550bec0 authorGraham Christensen <graham@grahamc.com> dateMon 28 Nov 2016, 08:35 (10 years ago) parent1f7a23caf1dacc
1 file changed+14−6
pkgs/development/mobile/genymotion/default.nix+14−6
pkgs/development/mobile/genymotion/default.nix+14−6
@@ -1,4 +1,5 @@
11{ stdenv, requireFile, makeWrapper, which, zlib, mesa_noglu, glib, xorg, libxkbcommon
2+, xdg_utils
23# For glewinfo
34, libXmu, libXi, libXext }:
45
@@ -10,24 +11,31 @@ let
1011in
1112stdenv.mkDerivation rec {
1213 name = "genymotion-${version}";
13− version = "2.7.2";
14+ version = "2.8.0";
1415 src = requireFile {
15− url = https://www.genymotion.com/account/login/;
16+ url = https://www.genymotion.com/download/;
1617 name = "genymotion-${version}-linux_x64.bin";
17− sha256 = "0j1dzry6wf6cw3yr318z81rmj79r6w5l6vpilm7m9h786jrgywa1";
18+ sha256 = "0lvfdlpmmsyq2i9gs4mf6a8fxkfimdr4rhyihqnfhjij3fzxz4lk";
1819 };
1920
20− buildInputs = [ makeWrapper which ];
21+ buildInputs = [ makeWrapper which xdg_utils ];
2122
2223 unpackPhase = ''
24+ mkdir -p phony-home $out/share/applications
25+ export HOME=$TMP/phony-home
26+
2327 mkdir ${name}
2428 echo "y" | sh $src -d ${name}
2529 sourceRoot=${name}
30+
31+ substitute phony-home/.local/share/applications/genymobile-genymotion.desktop \
32+ $out/share/applications/genymobile-genymotion.desktop --replace "$TMP/${name}" "$out/libexec"
2633 '';
2734
2835 installPhase = ''
2936 mkdir -p $out/bin $out/libexec
3037 mv genymotion $out/libexec/
38+ ln -s $out/libexec/genymotion/{genymotion,player} $out/bin
3139 '';
3240
3341 fixupPhase = ''
@@ -38,7 +46,7 @@ stdenv.mkDerivation rec {
3846
3947 patchExecutable() {
4048 patchInterpreter "$1"
41− makeWrapper "$out/libexec/genymotion/$1" "$out/bin/$1" \
49+ wrapProgram "$out/libexec/genymotion/$1" \
4250 --set "LD_LIBRARY_PATH" "${libPath}"
4351 }
4452
@@ -67,7 +75,7 @@ stdenv.mkDerivation rec {
6775 '';
6876 homepage = https://www.genymotion.com/;
6977 license = stdenv.lib.licenses.unfree;
70− platforms = stdenv.lib.platforms.linux;
78+ platforms = ["x86_64-linux"];
7179 maintainers = [ stdenv.lib.maintainers.puffnfresh ];
7280 };
7381}