Merge pull request #41336 from volth/patch-129

frostwire: 6.6.3 -> 6.6.7

xeji 02b77eaf b13c4e54

Changed files
+14 -7
pkgs
applications
networking
+12 -5
pkgs/applications/networking/p2p/frostwire/default.nix
···
{ 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 {
···
'';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
-
outputHash = "0p279i41q7pn6nss8vndv3g4qzrvj3pmhdxq50kymwkyp2kly3lc";
+
outputHash = "11zd98g0d0fdgls4lsskkagwfxyh26spfd6c6g9cahl89czvlg3c";
};
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
···
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
+2 -2
pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix
···
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 ];