about summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-05-31 22:10:44 +0000
committerGitHub <noreply@github.com>2018-05-31 22:10:44 +0000
commit8b984ba61e011b02466dc7f371a4d84ed81a713d (patch)
tree238cf2e0a3978c44614ecdb33e20d667f8868076 /pkgs/applications/networking/p2p
parent2bd46c6b8029c7a3f3abff6c8b2336734f12bcc5 (diff)
downloadnixlib-8b984ba61e011b02466dc7f371a4d84ed81a713d.tar
nixlib-8b984ba61e011b02466dc7f371a4d84ed81a713d.tar.gz
nixlib-8b984ba61e011b02466dc7f371a4d84ed81a713d.tar.bz2
nixlib-8b984ba61e011b02466dc7f371a4d84ed81a713d.tar.lz
nixlib-8b984ba61e011b02466dc7f371a4d84ed81a713d.tar.xz
nixlib-8b984ba61e011b02466dc7f371a4d84ed81a713d.tar.zst
nixlib-8b984ba61e011b02466dc7f371a4d84ed81a713d.zip
frostwire: disable auto-update
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r--pkgs/applications/networking/p2p/frostwire/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/networking/p2p/frostwire/default.nix b/pkgs/applications/networking/p2p/frostwire/default.nix
index 79d0e9acef92..8cb5f768f956 100644
--- a/pkgs/applications/networking/p2p/frostwire/default.nix
+++ b/pkgs/applications/networking/p2p/frostwire/default.nix
@@ -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
@@ -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