Skip to content

Commit

Permalink
Merge pull request NixOS#41336 from volth/patch-129
Browse files Browse the repository at this point in the history
 frostwire: 6.6.3 -> 6.6.7
  • Loading branch information
xeji committed Jun 1, 2018
2 parents b13c4e5 + 8b984ba commit 02b77ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions pkgs/applications/networking/p2p/frostwire/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, lib, fetchFromGitHub, gradle, perl, jre, makeWrapper, makeDesktopItem, mplayer }:

let
version = "6.6.3-build-253";
version = "6.6.7-build-529";
name = "frostwire-desktop-${version}";

src = fetchFromGitHub {
owner = "frostwire";
repo = "frostwire";
rev = name;
sha256 = "1bqv942hfz12i3b3nm1pfwdp7f58nzjxg44h31f3q47719hh8kd7";
sha256 = "03wdj2kr8akzx8m1scvg98132zbaxh81qjdsxn2645b3gahjwz0m";
};

desktopItem = makeDesktopItem {
Expand Down Expand Up @@ -40,7 +40,7 @@ let
'';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "0p279i41q7pn6nss8vndv3g4qzrvj3pmhdxq50kymwkyp2kly3lc";
outputHash = "11zd98g0d0fdgls4lsskkagwfxyh26spfd6c6g9cahl89czvlg3c";
};

in stdenv.mkDerivation {
Expand All @@ -52,8 +52,15 @@ in stdenv.mkDerivation {
buildPhase = ''
export GRADLE_USER_HOME=$(mktemp -d)
( cd desktop
# disable auto-update (anyway it won't update frostwire installed in nix store)
substituteInPlace src/com/frostwire/gui/updates/UpdateManager.java \
--replace 'um.checkForUpdates' '// um.checkForUpdates'
# fix path to mplayer
substituteInPlace src/com/frostwire/gui/player/MediaPlayerLinux.java \
--replace /usr/bin/mplayer ${mplayer}/bin/mplayer
substituteInPlace build.gradle \
--replace 'mavenCentral()' 'mavenLocal(); maven { url uri("${deps}") }'
gradle --offline --no-daemon build
Expand All @@ -66,8 +73,8 @@ in stdenv.mkDerivation {
cp desktop/build/libs/frostwire.jar $out/share/java/frostwire.jar
cp ${ { x86_64-darwin = "desktop/lib/native/*.dylib";
x86_64-linux = "desktop/lib/native/libjlibtorrent.so";
i686-linux = "desktop/lib/native/libjlibtorrentx86.so";
x86_64-linux = "desktop/lib/native/lib{jlibtorrent,SystemUtilities}.so";
i686-linux = "desktop/lib/native/lib{jlibtorrent,SystemUtilities}X86.so";
}.${stdenv.system} or (throw "unsupported system ${stdenv.system}")
} $out/lib
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
with stdenv.lib;

stdenv.mkDerivation rec {
version = "6.6.5";
version = "6.6.7";
name = "frostwire-${version}";

src = fetchurl {
url = "http://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
sha256 = "0qxh5288mxd7ksd3zl0i8avkyzh8lj06x3jqya8znfq1c1wg0fph";
sha256 = "01ah0cwr3ahihfz1xxs0irw4rsa7wjgnlkcqfyg5q9rmzwbnxkyh";
};

nativeBuildInputs = [ makeWrapper ];
Expand Down

0 comments on commit 02b77ea

Please sign in to comment.